From f9dafad4a195adec937c72f825aaecdcabfec8d7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 14 Apr 2023 14:44:53 -0400 Subject: gzip, ustar: Add *_free() functions --- (limited to 'src/ustar.c') 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); +} -- cgit v0.9.1