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:
parent
1dd63990a2
commit
380c25ea45
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user