summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-14 14:44:53 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-14 14:58:14 (EDT)
commitf9dafad4a195adec937c72f825aaecdcabfec8d7 (patch)
tree7704d3a7c730f982ae7dcb3c4f670e1389aef99b /src/main.c
parentea566435355699cab1d3db3343cf6996c281f2f2 (diff)
gzip, ustar: Add *_free() functions
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;