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/ustar.c | |
parent | ea566435355699cab1d3db3343cf6996c281f2f2 (diff) |
gzip, ustar: Add *_free() functions
Diffstat (limited to 'src/ustar.c')
-rw-r--r-- | src/ustar.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ustar.c b/src/ustar.c index 69071c7..4805880 100644 --- a/src/ustar.c +++ b/src/ustar.c @@ -82,7 +82,6 @@ _opkg_opk_ustar_next(struct opkg_opk_ustar *ustar, } memset(record, 0, 512); if (memcmp(header, record, 512) == 0) { - /* TODO: End gzip stream */ return OPKG_OPK_END; } if (memcmp(header->magic, "ustar", strlen("ustar")) != 0) { @@ -192,3 +191,9 @@ opkg_opk_ustar_read(struct opkg_opk_ustar *ustar, char *buffer, size_t *size) } return OPKG_OPK_OK; } + +void +opkg_opk_ustar_free(struct opkg_opk_ustar *ustar) +{ + free(ustar); +} |