diff --git a/gio/ChangeLog b/gio/ChangeLog index 5441eee00..a25e61af4 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 d2da9c77d..a668127ae 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; }