aboutsummaryrefslogtreecommitdiffstats
path: root/examples/minitar/minitar.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/minitar/minitar.c')
-rw-r--r--examples/minitar/minitar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/minitar/minitar.c b/examples/minitar/minitar.c
index 0b4b4147ca99..881f94b2d33e 100644
--- a/examples/minitar/minitar.c
+++ b/examples/minitar/minitar.c
@@ -398,6 +398,9 @@ extract(const char *filename, int do_extract, int flags)
}
archive_read_close(a);
archive_read_free(a);
+
+ archive_write_close(ext);
+ archive_write_free(ext);
exit(0);
}