gfileutils: Add missing g_free() in error path
authorColin Walters <walters@verbum.org>
Tue, 22 Jul 2014 18:00:23 +0000 (14:00 -0400)
committerColin Walters <walters@verbum.org>
Wed, 23 Jul 2014 11:43:41 +0000 (07:43 -0400)
Discovered by static analysis.

https://bugzilla.gnome.org/show_bug.cgi?id=733576

glib/gfileutils.c

index c80c1ef..baf3bec 100644 (file)
@@ -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;
         }