diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-28 23:59:55 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-28 23:59:55 +0000 |
commit | 1dc57669b2fdc3709f583fe2401c5228cdc80599 (patch) | |
tree | 41b69af094f383ab3c06bc67fa11a5e3d67530b5 /lto-plugin | |
parent | fd166f674738930a959a872c6730183be75a40d5 (diff) | |
download | gcc-1dc57669b2fdc3709f583fe2401c5228cdc80599.tar.gz |
Call release_input_file only if not NULL
* 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
Diffstat (limited to 'lto-plugin')
-rw-r--r-- | lto-plugin/ChangeLog | 5 | ||||
-rw-r--r-- | lto-plugin/lto-plugin.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index c0eae248cbd..81752e73716 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -1,5 +1,10 @@ 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 * lto-plugin.c (release_input_file): New. (claim_file_handler): Call release_input_file. diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 8e0a6579958..add83f2c5c5 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; } |