glib r6802 - branches/glib-2-16/gio



Author: alexl
Date: Mon Mar 31 21:05:56 2008
New Revision: 6802
URL: http://svn.gnome.org/viewvc/glib?rev=6802&view=rev

Log:
2008-03-31  Alexander Larsson  <alexl redhat com>

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



Modified:
   branches/glib-2-16/gio/ChangeLog
   branches/glib-2-16/gio/glocalfile.c

Modified: branches/glib-2-16/gio/glocalfile.c
==============================================================================
--- branches/glib-2-16/gio/glocalfile.c	(original)
+++ branches/glib-2-16/gio/glocalfile.c	Mon Mar 31 21:05:56 2008
@@ -1386,6 +1386,7 @@
   if (strcmp (parent, ".") == 0 ||
       strcmp (parent, path_copy) == 0)
     {
+      g_free (parent);
       g_free (path_copy);
       return NULL;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]