From: Alexander Larsson Date: Mon, 31 Mar 2008 20:04:24 +0000 (+0000) Subject: Don't leak parent. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=fe68fc74964a8bc79db8406a2f5efb823daaf25e;p=dana%2Fcg-glib.git Don't leak parent. 2008-03-31 Alexander Larsson * glocalfile.c (get_parent): Don't leak parent. svn path=/trunk/; revision=6801 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index 5441eee0..a25e61af 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2008-03-31 Alexander Larsson + + * glocalfile.c (get_parent): + Don't leak parent. + 2008-03-31 A. Walton * gfile.c (g_file_query_file_type): diff --git a/gio/glocalfile.c b/gio/glocalfile.c index d2da9c77..a668127a 100644 --- a/gio/glocalfile.c +++ b/gio/glocalfile.c @@ -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; }