diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2016-12-06 15:23:26 +0100 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2016-12-06 15:23:26 +0100 |
commit | 72c12f3f63bde10b27543ee098042ced08addf98 (patch) | |
tree | a5810c8e3c164e9ae5058760176dbcf208bf0af1 | |
parent | ee1299ea8e4d91480352d3a180c46dded67f8131 (diff) | |
download | libarchive-72c12f3f63bde10b27543ee098042ced08addf98.tar.gz |
Explicitly free archive to reduce valgrind noise.
-rw-r--r-- | cat/bsdcat.c | 3 |
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); } |