]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Free XAR xattr fstype metadata 3028/head
authorbr0nzu <dongpago2@gamil.com>
Wed, 13 May 2026 07:24:44 +0000 (16:24 +0900)
committerbr0nzu <dongpago2@gamil.com>
Wed, 13 May 2026 07:24:44 +0000 (16:24 +0900)
The XAR xattr cleanup helper released the xattr name string but not the parallel fstype archive_string. Release fstype from the same xattr_free() ownership boundary.

libarchive/archive_read_support_format_xar.c

index 874501fc0782739ad87b045f56c748a97f7a03c6..6de05e5e8a4b9403e9ab9d712f9b0811be6af40f 100644 (file)
@@ -1866,6 +1866,7 @@ static void
 xattr_free(struct xattr *xattr)
 {
        archive_string_free(&(xattr->name));
+       archive_string_free(&(xattr->fstype));
        free(xattr);
 }