diff options
author | Patrick 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) |
commit | f9dafad4a195adec937c72f825aaecdcabfec8d7 (patch) | |
tree | 7704d3a7c730f982ae7dcb3c4f670e1389aef99b /src/main.c | |
parent | ea566435355699cab1d3db3343cf6996c281f2f2 (diff) |
gzip, ustar: Add *_free() functions
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |