[glib] gfileutils: Add missing g_free() in error path



commit 49a5d0f6f2aed99cd78f25655f137f4448e47d92
Author: Colin Walters <walters verbum org>
Date:   Tue Jul 22 14:00:23 2014 -0400

    gfileutils: Add missing g_free() in error path
    
    Discovered by static analysis.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733576

 glib/gfileutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gfileutils.c b/glib/gfileutils.c
index c80c1ef..baf3bec 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;
         }
     


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]