glib r7663 - branches/glib-2-18/gio
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7663 - branches/glib-2-18/gio
- Date: Fri, 21 Nov 2008 00:02:00 +0000 (UTC)
Author: cosimoc
Date: Fri Nov 21 00:02:00 2008
New Revision: 7663
URL: http://svn.gnome.org/viewvc/glib?rev=7663&view=rev
Log:
2008-11-21 Cosimo Cecchi <cosimoc gnome org>
Bug 561375 â Leaks mountpoint description
* glocalfile.c: (get_mount_info): don't leak the mountpoint description
string.
Modified:
branches/glib-2-18/gio/ChangeLog
branches/glib-2-18/gio/glocalfile.c
Modified: branches/glib-2-18/gio/glocalfile.c
==============================================================================
--- branches/glib-2-18/gio/glocalfile.c (original)
+++ branches/glib-2-18/gio/glocalfile.c Fri Nov 21 00:02:00 2008
@@ -779,7 +779,7 @@
mountpoint = find_mountpoint_for (path, buf.st_dev);
if (mountpoint == NULL)
- mountpoint = "/";
+ mountpoint = g_strdup ("/");
mount = g_unix_mount_at (mountpoint, &cache_time);
if (mount)
@@ -790,6 +790,8 @@
g_unix_mount_free (mount);
}
+ g_free (mountpoint);
+
dev = g_new0 (dev_t, 1);
*dev = buf.st_dev;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]