If dup fails don't call close()
authorMatthias Clasen <mclasen@redhat.com>
Tue, 14 Jun 2011 20:32:55 +0000 (16:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Jun 2011 22:51:57 +0000 (18:51 -0400)
gio/gunixfdlist.c

index b92238f2ded3b2efb355baba981a85b9d97e9e83..9a888b2f61865295b171e45933025662305fb6a7 100644 (file)
@@ -113,7 +113,6 @@ dup_close_on_exec_fd (gint     fd,
       g_set_error (error, G_IO_ERROR,
                    g_io_error_from_errno (saved_errno),
                    "dup: %s", g_strerror (saved_errno));
-      close (new_fd);
 
       return -1;
     }