Remove most memory leaks with valgrind
This commit is contained in:
@@ -69,6 +69,9 @@ int compress_free(compress_ctx *ctx) {
|
||||
BrotliEncoderDestroyInstance(ctx->brotli);
|
||||
ctx->brotli = NULL;
|
||||
}
|
||||
if (ctx->mode & COMPRESS_GZ) {
|
||||
deflateEnd(&ctx->gzip);
|
||||
}
|
||||
ctx->mode = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user