From 4444c0a8de141f29f50df9e4683114a70654d3f7 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Thu, 9 Jul 2020 14:48:46 +0000 Subject: [PATCH] tight2: Fix leak of jpeg buffer --- src/tight-encoder-v2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tight-encoder-v2.c b/src/tight-encoder-v2.c index c29000b..a2def23 100644 --- a/src/tight-encoder-v2.c +++ b/src/tight-encoder-v2.c @@ -324,6 +324,7 @@ static int tight_encode_tile_jpeg(struct tight_encoder_v2* self, tile->size = size; rc = 0; + tjFree(buffer); failure: tjDestroy(handle);