diff options
author | TERESH1 <svyatoslavtereshin@yandex.ru> | 2022-12-28 05:30:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 18:30:21 -0800 |
commit | 0025ae839102aabc167690db60b154970ec4de05 (patch) | |
tree | 7bccb9b1032e4eaa933ab155e2dccbce8d231a52 /cpio/cpio.c | |
parent | 2d329073435d36065ce30bfd29428f6a45e41016 (diff) | |
download | libarchive-0025ae839102aabc167690db60b154970ec4de05.tar.gz |
Memory leaks fix for tests (#1829)
Issue #1828
Diffstat (limited to 'cpio/cpio.c')
-rw-r--r-- | cpio/cpio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpio/cpio.c b/cpio/cpio.c index 4acab9d2..7ed6a823 100644 --- a/cpio/cpio.c +++ b/cpio/cpio.c @@ -442,6 +442,8 @@ main(int argc, char *argv[]) archive_match_free(cpio->matching); free_cache(cpio->gname_cache); free_cache(cpio->uname_cache); + archive_read_close(cpio->archive_read_disk); + archive_read_free(cpio->archive_read_disk); free(cpio->destdir); passphrase_free(cpio->ppbuff); return (cpio->return_value); |