mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
fix leak that occurs when multiple mount entries match the requested path
2008-12-12 Ryan Lortie <desrt@desrt.ca> * gio/gunixmounts.c (g_unix_mount_at): fix leak that occurs when multiple mount entries match the requested path svn path=/trunk/; revision=7742
This commit is contained in:
parent
2152bd091e
commit
a28d87bfc9
@ -1,3 +1,8 @@
|
||||
2008-12-12 Ryan Lortie <desrt@desrt.ca>
|
||||
|
||||
* gio/gunixmounts.c (g_unix_mount_at): fix leak that occurs when
|
||||
multiple mount entries match the requested path
|
||||
|
||||
2008-12-12 Behdad Esfahbod <behdad@gnome.org>
|
||||
|
||||
* glib/guniprop.c: Improve g_unichar_iswide_cjk() docs.
|
||||
|
@ -1054,7 +1054,7 @@ g_unix_mount_at (const char *mount_path,
|
||||
{
|
||||
mount_entry = l->data;
|
||||
|
||||
if (strcmp (mount_path, mount_entry->mount_path) == 0)
|
||||
if (!found && strcmp (mount_path, mount_entry->mount_path) == 0)
|
||||
found = mount_entry;
|
||||
else
|
||||
g_unix_mount_free (mount_entry);
|
||||
|
Loading…
Reference in New Issue
Block a user