]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
remove implicit free
authorBastian Dehn <hhaalo@arcor.de>
Thu, 29 Feb 2024 19:13:23 +0000 (20:13 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 29 Feb 2024 19:13:23 +0000 (20:13 +0100)
src/kds_s2000w_handler.c

index 1a897356b65ea01e3d8d771a7544efb1346e59c4..ea40b284a44f5d6eba36ce724392a6d2dbcce104 100644 (file)
@@ -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);