Commit 380c25ea by H.J. Lu Committed by H.J. Lu

Call release_input_file only if not NULL

	* lto-plugin.c (claim_file_handler): Call release_input_file only
	if it is not NULL.

From-SVN: r220224
parent 1dd63990
2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
* lto-plugin.c (claim_file_handler): Call release_input_file only
if it is not NULL.
2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
PR lto/64837
* lto-plugin.c (release_input_file): New.
(claim_file_handler): Call release_input_file.
......
......@@ -1007,7 +1007,8 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
if (obj.objfile)
simple_object_release_read (obj.objfile);
release_input_file (file);
if (release_input_file)
release_input_file (file);
return LDPS_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment