From: Joerg Sonnenberger Date: Tue, 6 Dec 2016 14:23:26 +0000 (+0100) Subject: Explicitly free archive to reduce valgrind noise. X-Git-Tag: v3.3.0~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72c12f3f63bde10b27543ee098042ced08addf98;p=thirdparty%2Flibarchive.git Explicitly free archive to reduce valgrind noise. --- diff --git a/cat/bsdcat.c b/cat/bsdcat.c index 9ef75a6b4..6ba103494 100644 --- a/cat/bsdcat.c +++ b/cat/bsdcat.c @@ -142,5 +142,8 @@ main(int argc, char **argv) bsdcat_next(); } + if (a != NULL) + archive_read_free(a); + exit(exit_status); }