From eef6f0add83c9a82b7544b519f292a90d9356a74 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 21 Jun 2012 12:00:04 -0400 Subject: [PATCH] gfileutils: Remove extra fclose() This is a regression introduced by: commit 6ac8e6108cf15884e28fe1ecd3042dfce0e11dfd Author: Matthias Clasen Date: Tue Jun 14 10:12:46 2011 -0400 Don't leak resources in error cases --- glib/gfileutils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glib/gfileutils.c b/glib/gfileutils.c index cb306efec..0df930508 100644 --- a/glib/gfileutils.c +++ b/glib/gfileutils.c @@ -1166,7 +1166,6 @@ write_to_temp_file (const gchar *contents, display_name, g_strerror (save_errno)); - fclose (file); g_unlink (tmp_name); goto out;