mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 22:52:09 +01:00
glocalfileinfo: Fix a leak on an error handling path
Spotted by Clang static analysis, thanks to Leslie Zhai. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=777075
This commit is contained in:
parent
e73831d808
commit
9ab0073321
@ -657,7 +657,10 @@ get_xattrs_from_fd (int fd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (list_res_size == -1)
|
if (list_res_size == -1)
|
||||||
|
{
|
||||||
|
g_free (list);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
attr = list;
|
attr = list;
|
||||||
while (list_res_size > 0)
|
while (list_res_size > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user