projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83d34f6
)
Don't leak resources in error cases
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Jun 2011 14:12:46 +0000
(10:12 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Jun 2011 14:12:46 +0000
(10:12 -0400)
glib/gfileutils.c
patch
|
blob
|
history
diff --git
a/glib/gfileutils.c
b/glib/gfileutils.c
index
c58ac47
..
a4a1db2
100644
(file)
--- a/
glib/gfileutils.c
+++ b/
glib/gfileutils.c
@@
-963,6
+963,7
@@
write_to_temp_file (const gchar *contents,
display_name,
g_strerror (save_errno));
+ fclose (file);
g_unlink (tmp_name);
goto out;
@@
-1006,6
+1007,7
@@
write_to_temp_file (const gchar *contents,
display_name,
g_strerror (save_errno));
+ fclose (file);
g_unlink (tmp_name);
goto out;
@@
-1026,6
+1028,7
@@
write_to_temp_file (const gchar *contents,
display_name,
g_strerror (save_errno));
+ fclose (file);
g_unlink (tmp_name);
goto out;