From 57f30d5ef3b947702aa3a2ebef32af1f9886b236 Mon Sep 17 00:00:00 2001 From: espindola Date: Fri, 30 Oct 2009 18:29:37 +0000 Subject: 2009-10-30 Rafael Avila de Espindola PR41871 * lto-plugin.c (claim_file_handler): Close files that we created. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153764 138bc75d-0d04-0410-961f-82ee72b054a4 --- lto-plugin/lto-plugin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lto-plugin/lto-plugin.c') diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 3a51441c433..c92ac06cf2d 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -635,6 +635,9 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed) if (elf) elf_end (elf); + if (file->offset != 0) + close (lto_file_fd); + return LDPS_OK; } -- cgit v1.2.1