mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
If dup fails don't call close()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user