mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
glocalfileinfo: Fix minor leak on error handling path for xattrs
Spotted by `scan-build`. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -504,7 +504,10 @@ get_xattrs (const char *path,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (list_res_size == -1)
|
if (list_res_size == -1)
|
||||||
return;
|
{
|
||||||
|
g_free (list);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
attr = list;
|
attr = list;
|
||||||
while (list_res_size > 0)
|
while (list_res_size > 0)
|
||||||
|
Reference in New Issue
Block a user