summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 26e60fa..79ed68c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -64,14 +64,15 @@ main(int argc, char *argv[])
}
ustar = opkg_opk_ustar_init(gzip);
if (ustar == NULL) {
- /* TODO: Free gzip. */
+ opkg_opk_gzip_free(gzip);
fclose(file.file);
return EXIT_FAILURE;
}
while ((ret = opkg_opk_ustar_list(ustar, &member)) == OPKG_OPK_OK) {
puts(member.name);
}
- /* TODO: Free ustar and gzip. */
+ opkg_opk_gzip_free(gzip);
+ opkg_opk_ustar_free(ustar);
fclose(file.file);
return EXIT_SUCCESS;