summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/tar/write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c
index 22290c9..7a0ae6c 100644
--- a/usr.bin/tar/write.c
+++ b/usr.bin/tar/write.c
@@ -513,6 +513,7 @@ append_archive(struct bsdtar *bsdtar, struct archive *a, const char *filename)
filename, archive_error_string(ina));
bsdtar->return_value = 1;
}
+ archive_read_finish(ina);
/* Note: If we got here, we saw no write errors, so return success. */
return (0);
OpenPOWER on IntegriCloud