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:
Philip Withnall 2017-11-17 14:39:55 +00:00
parent e73831d808
commit 9ab0073321

View File

@ -657,7 +657,10 @@ get_xattrs_from_fd (int fd,
}
if (list_res_size == -1)
{
g_free (list);
return;
}
attr = list;
while (list_res_size > 0)