From: H.J. Lu Date: Wed, 28 Jan 2015 23:59:55 +0000 (+0000) Subject: Call release_input_file only if not NULL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=380c25ea45bc727bba57e3f304c89242aa1cfd0d;p=gcc.git 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 --- diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index c0eae248cbd..81752e73716 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -1,3 +1,8 @@ +2015-01-28 H.J. Lu + + * lto-plugin.c (claim_file_handler): Call release_input_file only + if it is not NULL. + 2015-01-28 H.J. Lu PR lto/64837 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; }