summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-07-22 14:00:23 -0400
committerColin Walters <walters@verbum.org>2014-07-23 07:43:41 -0400
commit49a5d0f6f2aed99cd78f25655f137f4448e47d92 (patch)
tree10ba5482306c8ed739d1df4b6dabf0480944199b
parentfeec280b7c5c7b9198e34b10b4f5764c9c3c4505 (diff)
gfileutils: Add missing g_free() in error path
Discovered by static analysis. https://bugzilla.gnome.org/show_bug.cgi?id=733576
-rw-r--r--glib/gfileutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gfileutils.c b/glib/gfileutils.c
index c80c1ef68..baf3bec85 100644
--- a/glib/gfileutils.c
+++ b/glib/gfileutils.c
@@ -2013,7 +2013,7 @@ g_file_read_link (const gchar *filename,
set_file_error (error,
filename,
_("Failed to read the symbolic link '%s': %s"));
-
+ g_free (buffer);
return NULL;
}