summaryrefslogtreecommitdiff
path: root/cat
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2016-12-06 15:23:26 +0100
committerJoerg Sonnenberger <joerg@bec.de>2016-12-06 15:23:26 +0100
commit72c12f3f63bde10b27543ee098042ced08addf98 (patch)
treea5810c8e3c164e9ae5058760176dbcf208bf0af1 /cat
parentee1299ea8e4d91480352d3a180c46dded67f8131 (diff)
downloadlibarchive-72c12f3f63bde10b27543ee098042ced08addf98.tar.gz
Explicitly free archive to reduce valgrind noise.
Diffstat (limited to 'cat')
-rw-r--r--cat/bsdcat.c3
1 files changed, 3 insertions, 0 deletions
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);
}