]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
free pnm image data
authorBastian Dehn <hhaalo@arcor.de>
Tue, 20 Feb 2024 20:31:52 +0000 (21:31 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 20 Feb 2024 20:31:52 +0000 (21:31 +0100)
src/kds_s2000w_handler.c

index 8f326beb12da5af8f047bb9791e51d305d22110f..4b4c147bc8f361eac649cada055fa7c22eb6e2a7 100644 (file)
@@ -250,6 +250,8 @@ void kds_s2000w_handler_close(void* handle)
        resp = NULL;
        free(image.data);
        image.data = NULL;
+       free(pnm_image.data);
+       pnm_image.data = NULL;
        free(h->current_scan_status);
        h->current_scan_status = NULL;
        free(h->current_metadata->image);