mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 00:40:59 +08:00
Call release_input_file only if file is claimed
* lto-plugin.c (claim_file_handler): Call release_input_file only if file is claimed. From-SVN: r220455
This commit is contained in:
parent
c7d22ee76f
commit
06fa4f005f
@ -1,3 +1,8 @@
|
||||
2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* lto-plugin.c (claim_file_handler): Call release_input_file only
|
||||
if file is claimed.
|
||||
|
||||
2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* lto-plugin.c (claim_file_handler): Call release_input_file only
|
||||
|
@ -998,6 +998,9 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
|
||||
|
||||
*claimed = 1;
|
||||
|
||||
if (release_input_file)
|
||||
release_input_file (file);
|
||||
|
||||
goto cleanup;
|
||||
|
||||
err:
|
||||
@ -1007,9 +1010,6 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
|
||||
if (obj.objfile)
|
||||
simple_object_release_read (obj.objfile);
|
||||
|
||||
if (release_input_file)
|
||||
release_input_file (file);
|
||||
|
||||
return LDPS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user