OSDN Git Service

2009-10-30 Rafael Avila de Espindola <espindola@google.com>
[pf3gnuchains/gcc-fork.git] / lto-plugin / lto-plugin.c
index 3a51441..c92ac06 100644 (file)
@@ -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;
 }