From f9a730f33b14e61bf5466f6e2361b1d74dabcada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 7 Apr 2021 19:07:43 +0200 Subject: [PATCH] sixel: sixel_fini(): free image data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Normally, this data is always free:d indirectly, when the sixel image that took over ownership is destroyed. But let’s play it safe. --- sixel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sixel.c b/sixel.c index 903fe8e4..f4d917f4 100644 --- a/sixel.c +++ b/sixel.c @@ -28,6 +28,7 @@ get_bg(const struct terminal *term) void sixel_fini(struct terminal *term) { + free(term->sixel.image.data); free(term->sixel.private_palette); free(term->sixel.shared_palette); }