From cc53a2201ffc6bd2eb60a0785a9a716695b17d88 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Thu, 22 Feb 2024 19:25:02 +0100 Subject: [PATCH] fix double free by close --- src/kds_s2000w_handler.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/kds_s2000w_handler.c b/src/kds_s2000w_handler.c index 33c5dee..7418619 100644 --- a/src/kds_s2000w_handler.c +++ b/src/kds_s2000w_handler.c @@ -244,8 +244,6 @@ void kds_s2000w_handler_close(void* handle) resp = NULL; free(image.data); image.data = NULL; - free(pnm_image.data); - pnm_image.data = NULL; handler* h = (handler*) handle; if (h == NULL) -- 2.39.5