From 63b3f3d5ee6a24ba72c23ded36b40c9b3f68bce6 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Mon, 22 Aug 2022 10:26:21 -0400 Subject: [PATCH] manually patch easylzma PR lloyd/easylzma#7 to prevent memory leak --- src/easylzma/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/easylzma/compress.c b/src/easylzma/compress.c index 78be112..577b014 100644 --- a/src/easylzma/compress.c +++ b/src/easylzma/compress.c @@ -66,7 +66,7 @@ elzma_compress_free(elzma_compress_handle * hand) (ISzAlloc *) &((*hand)->allocStruct), (ISzAlloc *) &((*hand)->allocStruct)); } - + free(*hand); } *hand = NULL; }