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:
Philip Withnall 2019-10-30 15:35:15 +00:00
parent 543a0c4091
commit 15818926b3

View File

@ -504,7 +504,10 @@ get_xattrs (const char *path,
}
if (list_res_size == -1)
return;
{
g_free (list);
return;
}
attr = list;
while (list_res_size > 0)