diff options
Diffstat (limited to 'lto-plugin/lto-plugin.c')
-rw-r--r-- | lto-plugin/lto-plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index add83f2..e25bbf9 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -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; } |