aboutsummaryrefslogtreecommitdiffstats
path: root/cpio/cpio.c
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2016-12-30 01:34:06 +0000
committerMartin Matuska <mm@FreeBSD.org>2016-12-30 01:34:06 +0000
commit79b08f16f5ddb1d3863d84ec051211a8b0b082d9 (patch)
treee4aae06ae8b30ea7615eaed3edb1446de1263844 /cpio/cpio.c
parent6802f55462095ac6920ebdf52c37508e5615a76f (diff)
downloadsrc-79b08f16f5ddb1d3863d84ec051211a8b0b082d9.tar.gz
src-79b08f16f5ddb1d3863d84ec051211a8b0b082d9.zip
Update vendor/libarchive to git 2a2488a81599f9cd065a8254b16a6fd48d81c3b4
Vendor bugfixes: PR #843: Fix memory leak of struct archive_entry in cpio/cpio.c PR #851: Spelling fixes Fix two protoypes in manual page archive_read_disk.3
Notes
Notes: svn path=/vendor/libarchive/dist/; revision=310798
Diffstat (limited to 'cpio/cpio.c')
-rw-r--r--cpio/cpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpio/cpio.c b/cpio/cpio.c
index 373e6da787f5..6c20ee68322e 100644
--- a/cpio/cpio.c
+++ b/cpio/cpio.c
@@ -703,6 +703,7 @@ file_to_archive(struct cpio *cpio, const char *srcpath)
lafe_warnc(0, "%s",
archive_error_string(cpio->archive_read_disk));
if (r <= ARCHIVE_FAILED) {
+ archive_entry_free(entry);
cpio->return_value = 1;
return (r);
}