From: sylvestre Date: Fri, 30 Jun 2017 14:17:54 +0000 (+0000) Subject: * lto-wrapper.c (copy_file) Close both file descriptors before X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2443f8fdb697bcfc50fa7641c9535a1539a1c29a;p=thirdparty%2Fgcc.git * lto-wrapper.c (copy_file) Close both file descriptors before exiting normally. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249841 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6a709b617e6..84a939922925 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-30 Sylvestre Ledru + + * lto-wrapper.c (copy_file) Close both file descriptors before + exiting normally. + 2017-06-30 Martin Liska PR ipa/81214 diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 4b86f939ca23..832ffde3e404 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -838,6 +838,8 @@ copy_file (const char *dest, const char *src) fatal_error (input_location, "writing output file"); } } + fclose (d); + fclose (s); } /* Find the crtoffloadtable.o file in LIBRARY_PATH, make copy and pass name of