]> git.ipfire.org Git - thirdparty/libarchive.git/commit
tar: fix memory leaks when processing symlinks or parsing pax headers (#2338)
authorBrad King <brad.king@kitware.com>
Fri, 20 Sep 2024 12:11:43 +0000 (08:11 -0400)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2024 12:11:43 +0000 (14:11 +0200)
commit7c3980367e79c3f89e9ba595bbe67b3983b26215
tree8148bc9ade3b462de316e5381ab58d90c5ae8766
parente939c97a579131aa021166ef5876b303bccd8472
tar: fix memory leaks when processing symlinks or parsing pax headers (#2338)

Fix memory leaks introduced by #2127:

* `struct tar` member `entry_linkpath` was moved at the same time as
   other members were removed, but its cleanup was accidentally removed
   with the others.

* `header_pax_extension` local variable `attr_name` was not cleaned up.

Resolves #2336
libarchive/archive_read_support_format_tar.c