[glib: 5/7] glocalfileinfo: Fix minor leak on error handling path for xattrs
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/7] glocalfileinfo: Fix minor leak on error handling path for xattrs
- Date: Wed, 30 Oct 2019 16:24:08 +0000 (UTC)
commit 15818926b360b99d7897e519d7414470870b2e58
Author: Philip Withnall <withnall endlessm com>
Date: Wed Oct 30 15:35:15 2019 +0000
glocalfileinfo: Fix minor leak on error handling path for xattrs
Spotted by `scan-build`.
Signed-off-by: Philip Withnall <withnall endlessm com>
gio/glocalfileinfo.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index dcc9bce1e..5ba7691a6 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]