]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Explicitly free archive to reduce valgrind noise.
authorJoerg Sonnenberger <joerg@bec.de>
Tue, 6 Dec 2016 14:23:26 +0000 (15:23 +0100)
committerJoerg Sonnenberger <joerg@bec.de>
Tue, 6 Dec 2016 14:23:26 +0000 (15:23 +0100)
cat/bsdcat.c

index 9ef75a6b476f96f94f33a6e90f29cff228e889bc..6ba103494342b492fd8e01222c9175380963797d 100644 (file)
@@ -142,5 +142,8 @@ main(int argc, char **argv)
                        bsdcat_next();
                }
 
+       if (a != NULL)
+               archive_read_free(a);
+
        exit(exit_status);
 }