Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
gfileutils: Remove extra fclose()
Browse files Browse the repository at this point in the history
This is a regression introduced by:
commit 6ac8e61
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Tue Jun 14 10:12:46 2011 -0400

    Don't leak resources in error cases
  • Loading branch information
cgwalters committed Jun 22, 2012
1 parent e756bef commit eef6f0a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion glib/gfileutils.c
Expand Up @@ -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;
Expand Down

0 comments on commit eef6f0a

Please sign in to comment.