diff options
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; |