]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Call release_input_file only if not NULL
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jan 2015 23:59:55 +0000 (23:59 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jan 2015 23:59:55 +0000 (23:59 +0000)
* lto-plugin.c (claim_file_handler): Call release_input_file only
if it is not NULL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220224 138bc75d-0d04-0410-961f-82ee72b054a4

lto-plugin/ChangeLog
lto-plugin/lto-plugin.c

index c0eae248cbd3bdc1547ab067ee3528b26d8f3e1e..81752e73716f1e6ae40ed1d44a9d010bd2312a02 100644 (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
index 8e0a657995822ada990fc2fce7311093200b6839..add83f2c5c55a0b3ea07d0b34041e6ec4f49fbbd 100644 (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;
 }