aboutsummaryrefslogtreecommitdiff
path: root/lto-plugin/lto-plugin.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2015-01-28 23:59:55 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2015-01-28 15:59:55 -0800
commit380c25ea45bc727bba57e3f304c89242aa1cfd0d (patch)
tree41b69af094f383ab3c06bc67fa11a5e3d67530b5 /lto-plugin/lto-plugin.c
parent1dd63990a2d8f74ade5795cd635a2a82e46bed81 (diff)
downloadgcc-380c25ea45bc727bba57e3f304c89242aa1cfd0d.zip
gcc-380c25ea45bc727bba57e3f304c89242aa1cfd0d.tar.gz
gcc-380c25ea45bc727bba57e3f304c89242aa1cfd0d.tar.bz2
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
Diffstat (limited to 'lto-plugin/lto-plugin.c')
-rw-r--r--lto-plugin/lto-plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 8e0a657..add83f2 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -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;
}