glib r7662 - trunk/gio
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7662 - trunk/gio
- Date: Fri, 21 Nov 2008 00:01:22 +0000 (UTC)
Author: cosimoc
Date: Fri Nov 21 00:01:22 2008
New Revision: 7662
URL: http://svn.gnome.org/viewvc/glib?rev=7662&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:
trunk/gio/ChangeLog
trunk/gio/glocalfile.c
Modified: trunk/gio/glocalfile.c
==============================================================================
--- trunk/gio/glocalfile.c (original)
+++ trunk/gio/glocalfile.c Fri Nov 21 00:01:22 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]