Commit 367e91e1 by Sylvestre Ledru Committed by Sylvestre Ledru

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

	exiting normally.

From-SVN: r249841
parent aaa587d4
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> 2017-06-30 Martin Liska <mliska@suse.cz>
PR ipa/81214 PR ipa/81214
......
...@@ -838,6 +838,8 @@ copy_file (const char *dest, const char *src) ...@@ -838,6 +838,8 @@ copy_file (const char *dest, const char *src)
fatal_error (input_location, "writing output file"); 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 /* Find the crtoffloadtable.o file in LIBRARY_PATH, make copy and pass name of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment