summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glnx-xattrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-xattrs.c b/glnx-xattrs.c
index 892d534..785ad0e 100644
--- a/glnx-xattrs.c
+++ b/glnx-xattrs.c
@@ -181,7 +181,7 @@ get_xattrs_impl (const char *path,
{
if (errno == ERANGE)
{
- g_free (xattr_names);
+ g_free (g_steal_pointer (&xattr_names));
goto again;
}
glnx_set_prefix_error_from_errno (error, "%s", "llistxattr");