mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
If dup fails don't call close()
This commit is contained in:
parent
6e7a7052e0
commit
b6a829c314
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user