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);