]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix double free by close
authorBastian Dehn <hhaalo@arcor.de>
Thu, 22 Feb 2024 18:25:02 +0000 (19:25 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 22 Feb 2024 18:25:02 +0000 (19:25 +0100)
src/kds_s2000w_handler.c

index 33c5deef58749770fefd27f897bf21ae2c1d03e1..74186198cf4b092df31995e6624fd0ded8770b1b 100644 (file)
@@ -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)