Don't leak parent.

2008-03-31  Alexander Larsson  <alexl@redhat.com>

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


svn path=/trunk/; revision=6801
This commit is contained in:
Alexander Larsson 2008-03-31 20:04:24 +00:00 committed by Alexander Larsson
parent 5d17169953
commit fe68fc7496
2 changed files with 6 additions and 0 deletions

View 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):

View 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;
}