From: Bastian Dehn Date: Thu, 22 Feb 2024 18:25:02 +0000 (+0100) Subject: fix double free by close X-Git-Tag: v1.0.0^2~220 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=cc53a2201ffc6bd2eb60a0785a9a716695b17d88;p=sane-kds-s2000w-net.git fix double free by close --- 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)