mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Bug 561375 – Leaks mountpoint description
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
This commit is contained in:
committed by
Cosimo Cecchi
parent
8dc9c875ff
commit
d20bf1076b
@@ -1,3 +1,10 @@
|
|||||||
|
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>
|
2008-11-21 Cosimo Cecchi <cosimoc@gnome.org>
|
||||||
|
|
||||||
Bug 561352 – Leak of icon description
|
Bug 561352 – Leak of icon description
|
||||||
|
@@ -779,7 +779,7 @@ get_mount_info (GFileInfo *fs_info,
|
|||||||
|
|
||||||
mountpoint = find_mountpoint_for (path, buf.st_dev);
|
mountpoint = find_mountpoint_for (path, buf.st_dev);
|
||||||
if (mountpoint == NULL)
|
if (mountpoint == NULL)
|
||||||
mountpoint = "/";
|
mountpoint = g_strdup ("/");
|
||||||
|
|
||||||
mount = g_unix_mount_at (mountpoint, &cache_time);
|
mount = g_unix_mount_at (mountpoint, &cache_time);
|
||||||
if (mount)
|
if (mount)
|
||||||
@@ -790,6 +790,8 @@ get_mount_info (GFileInfo *fs_info,
|
|||||||
g_unix_mount_free (mount);
|
g_unix_mount_free (mount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free (mountpoint);
|
||||||
|
|
||||||
dev = g_new0 (dev_t, 1);
|
dev = g_new0 (dev_t, 1);
|
||||||
*dev = buf.st_dev;
|
*dev = buf.st_dev;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user