]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
free pointer to null
authorBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jan 2024 09:28:43 +0000 (10:28 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jan 2024 09:28:43 +0000 (10:28 +0100)
src/kds_s2000w_handler.c

index cf93384f7f9ed16c0dd212fcd0fe00e3c98311a6..4c2ab9e5bdcb51dac41678a291504501d3376bed 100644 (file)
@@ -100,7 +100,9 @@ void kds_s2000w_handler_get_option(int option, void* value)
        }
 
        kds_s2000w_client_response_free(resp);
+       resp = NULL;
        json_object_put(resObj);
+       resObj = NULL;
 }
 
 void kds_s2000w_handler_set_option(int option, void* value)