Don't leak parent.
authorAlexander Larsson <alexl@redhat.com>
Mon, 31 Mar 2008 20:04:24 +0000 (20:04 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Mon, 31 Mar 2008 20:04:24 +0000 (20:04 +0000)
2008-03-31  Alexander Larsson  <alexl@redhat.com>

* glocalfile.c (get_parent):
Don't leak parent.

svn path=/trunk/; revision=6801

gio/ChangeLog
gio/glocalfile.c

index 5441eee..a25e61a 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-31  Alexander Larsson  <alexl@redhat.com>
+
+       * glocalfile.c (get_parent):
+       Don't leak parent.
+       
 2008-03-31  A. Walton  <awalton@svn.gnome.org>
 
        * gfile.c (g_file_query_file_type):
index d2da9c7..a668127 100644 (file)
@@ -1386,6 +1386,7 @@ get_parent (const char *path,
   if (strcmp (parent, ".") == 0 ||
       strcmp (parent, path_copy) == 0)
     {
+      g_free (parent);
       g_free (path_copy);
       return NULL;
     }