diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-02-16 12:03:47 +0000 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-02-16 12:03:47 +0000 |
commit | a66fc8e3a92d2a28c84319e3f35c77062379db68 (patch) | |
tree | 6894011e88ebb3e90172d66443081eabb6a2c139 /gio/gfile.c | |
parent | a5778ef7c51044147fe470ea1707dd297f44f880 (diff) | |
download | glib-a66fc8e3a92d2a28c84319e3f35c77062379db68.tar.gz |
gfile: Fix FD leak introduced in error path in previous commit
The hazards of ‘just a quick fix and I will push’.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Reviewed-by: nobody
Diffstat (limited to 'gio/gfile.c')
-rw-r--r-- | gio/gfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gio/gfile.c b/gio/gfile.c index fcbbff22e..334ad8ec3 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -3025,7 +3025,8 @@ splice_stream_with_progress (GInputStream *in, { g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errsv), _("Error splicing file: %s"), g_strerror (errsv)); - return FALSE; + res = FALSE; + goto out; } } |