From a66fc8e3a92d2a28c84319e3f35c77062379db68 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 16 Feb 2018 12:03:47 +0000 Subject: gfile: Fix FD leak introduced in error path in previous commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hazards of ‘just a quick fix and I will push’. Signed-off-by: Philip Withnall Reviewed-by: nobody --- gio/gfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gio/gfile.c') 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; } } -- cgit v1.2.1