diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index 690970f8524242e8848ff1cd5fd589c4d94d6d58..690ea5ac40fe99ef0505562bc072862465be0200 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -1,3 +1,8 @@ +2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> + + PR lto/46291 + * lto-plugin.c (claim_file_handler): Don't close file descriptor. + 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> PR lto/46273 diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 7df0d6f3c01128f52c2ce551d0b341145549e321..83b61d53188ff1784c77c2d96c7a20ebad35aaa1 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -886,8 +886,6 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed) cleanup: if (obj.objfile) simple_object_release_read (obj.objfile); - if (file->fd >= 0) - close (file->fd); return LDPS_OK; }