* lto-wrapper.c (copy_file) Close both file descriptors before

exiting normally.

From-SVN: r249841
This commit is contained in:
Sylvestre Ledru 2017-06-30 14:17:54 +00:00 committed by Sylvestre Ledru
parent aaa587d46d
commit 367e91e1c5
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
* lto-wrapper.c (copy_file) Close both file descriptors before
exiting normally.
2017-06-30 Martin Liska <mliska@suse.cz>
PR ipa/81214

View File

@ -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