diff options
author | Colin Walters <walters@verbum.org> | 2021-08-04 15:32:52 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2021-08-04 15:32:52 +0000 |
commit | ef502aabf7d3a0d37f9c4d228f870ac93404447b (patch) | |
tree | d314c9182688433cf27622795cfe95b7b68adff4 | |
parent | b7a2d4dc599756c0d3792e695a97d2c2418111d3 (diff) | |
parent | 82e5b7dd568f4bfd8a77b809dd2c067e0a91e892 (diff) | |
download | libglnx-ef502aabf7d3a0d37f9c4d228f870ac93404447b.tar.gz |
Merge branch 'pr/cov-fix' into 'master'
xattrs: Fix possible double-free in `get_xattrs_impl`
See merge request GNOME/libglnx!29
-rw-r--r-- | glnx-xattrs.c | 2 |
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"); |