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 5441eee00716ab7614d6f1b8b1dd415aa6f512f1..a25e61af4647b052f002892f0b7180de40fd871d 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 d2da9c77d63d57dc5f4c6afff3adcf1dce57c225..a668127ae76e5fa8f4b3837681513e885f5bd404 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;
     }