From 286a167bff26106c3751e8866544358695b6e7bb Mon Sep 17 00:00:00 2001 From: Mohamad Date: Sat, 24 Feb 2018 23:41:25 +0330 Subject: [PATCH] add missing IpzipDestroy function --- ipzip.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ipzip.c b/ipzip.c index be1ee51..ed48adc 100644 --- a/ipzip.c +++ b/ipzip.c @@ -305,6 +305,12 @@ Ipzip *IpzipCreate(void) { return ipzip; } +void IpzipDestroy(Ipzip *ipzip) { + + if(ipzip == NULL) return; + free(ipzip); +} + static int IpzipCompressBuffer(Ipzip *ipzip, const unsigned char *source, unsigned char *dest, int inputSize, int flags) { U32 ctx[IPZIP_LZ4_BUFFER_SIZE/4];