mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-01 05:32:11 +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_set_error (error, G_IO_ERROR,
|
||||||
g_io_error_from_errno (saved_errno),
|
g_io_error_from_errno (saved_errno),
|
||||||
"dup: %s", g_strerror (saved_errno));
|
"dup: %s", g_strerror (saved_errno));
|
||||||
close (new_fd);
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user