From 72c12f3f63bde10b27543ee098042ced08addf98 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Tue, 6 Dec 2016 15:23:26 +0100 Subject: Explicitly free archive to reduce valgrind noise. --- cat/bsdcat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cat') diff --git a/cat/bsdcat.c b/cat/bsdcat.c index 9ef75a6b..6ba10349 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); } -- cgit v1.2.1