From: Bastian Dehn Date: Thu, 29 Feb 2024 19:13:23 +0000 (+0100) Subject: remove implicit free X-Git-Tag: v1.0.0^2~149 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=5687a54d47f6483e58019e9084c77e7246683aae;p=sane-kds-s2000w-net.git remove implicit free --- diff --git a/src/kds_s2000w_handler.c b/src/kds_s2000w_handler.c index 1a89735..ea40b28 100644 --- a/src/kds_s2000w_handler.c +++ b/src/kds_s2000w_handler.c @@ -69,11 +69,6 @@ void _get_current_metadata(handler* h) if (h->current_metadata->format == 1) h->current_metadata->channels = 3; - if (pnm_image.size > 0) { - free(pnm_image.data); - pnm_image.data = NULL; - pnm_image.size = 0; - } if (h->current_metadata->depth > 8) { h->current_metadata->depth = 8; kds_s2000w_convert_jpg_to_pnm_with_depth(&image, &pnm_image, h->current_metadata->depth);