Commit b6a829c3 authored by Matthias Clasen's avatar Matthias Clasen

If dup fails don't call close()

parent 6e7a7052
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment