From 6767cbe319e228fe1c51057811ba916933469499 Mon Sep 17 00:00:00 2001 From: br0nzu Date: Wed, 13 May 2026 16:24:44 +0900 Subject: [PATCH] Free XAR xattr fstype metadata 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/libarchive/archive_read_support_format_xar.c b/libarchive/archive_read_support_format_xar.c index 874501fc0..6de05e5e8 100644 --- a/libarchive/archive_read_support_format_xar.c +++ b/libarchive/archive_read_support_format_xar.c @@ -1866,6 +1866,7 @@ static void xattr_free(struct xattr *xattr) { archive_string_free(&(xattr->name)); + archive_string_free(&(xattr->fstype)); free(xattr); } -- 2.47.3