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.
svn path=/trunk/; revision=7662
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.
+
+2008-11-21 Cosimo Cecchi <cosimoc@gnome.org>
+
Bug 561352 – Leak of icon description
* gcontenttype.c: (g_content_type_get_icon): don't leak the XDG mimetype
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)
g_unix_mount_free (mount);
}
+ g_free (mountpoint);
+
dev = g_new0 (dev_t, 1);
*dev = buf.st_dev;