mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
Don't leak resources in error cases
This commit is contained in:
parent
83d34f6309
commit
6ac8e6108c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user