xattrs: Fix possible double-free in `get_xattrs_impl`
When we free xattr_name
, we need to transfer ownership away to avoid
potential for a double-free if we hit ENOTSUP
on the next iteration.
Reported-by: Seth Arnold seth.arnold@canonical.com
When we free xattr_name
, we need to transfer ownership away to avoid
potential for a double-free if we hit ENOTSUP
on the next iteration.
Reported-by: Seth Arnold seth.arnold@canonical.com