[glib/glib-2-32] gfileutils: Remove extra fclose()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-32] gfileutils: Remove extra fclose()
- Date: Sat, 14 Jul 2012 23:21:09 +0000 (UTC)
commit e713de67807a0d4bf90f99f334a31a378842c5ce
Author: Colin Walters <walters verbum org>
Date: Thu Jun 21 12:00:04 2012 -0400
gfileutils: Remove extra fclose()
This is a regression introduced by:
commit 6ac8e6108cf15884e28fe1ecd3042dfce0e11dfd
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 14 10:12:46 2011 -0400
Don't leak resources in error cases
glib/gfileutils.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/glib/gfileutils.c b/glib/gfileutils.c
index cb306ef..0df9305 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]