mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-28 23:16:14 +01:00
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:
parent
5d17169953
commit
fe68fc7496
@ -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>
|
2008-03-31 A. Walton <awalton@svn.gnome.org>
|
||||||
|
|
||||||
* gfile.c (g_file_query_file_type):
|
* gfile.c (g_file_query_file_type):
|
||||||
|
@ -1386,6 +1386,7 @@ get_parent (const char *path,
|
|||||||
if (strcmp (parent, ".") == 0 ||
|
if (strcmp (parent, ".") == 0 ||
|
||||||
strcmp (parent, path_copy) == 0)
|
strcmp (parent, path_copy) == 0)
|
||||||
{
|
{
|
||||||
|
g_free (parent);
|
||||||
g_free (path_copy);
|
g_free (path_copy);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user