If dup fails don't call close()

This commit is contained in:
Matthias Clasen 2011-06-14 16:32:55 -04:00
parent 6e7a7052e0
commit b6a829c314

View 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;
}