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
This commit is contained in:
H.J. Lu 2015-01-28 23:59:55 +00:00 committed by H.J. Lu
parent 1dd63990a2
commit 380c25ea45
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View 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;
}