From: Bastian Dehn Date: Sat, 27 Jan 2024 09:28:43 +0000 (+0100) Subject: free pointer to null X-Git-Tag: v1.0.0^2~453 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=6b451c3f2c3f82ff243ed0170c1037680f095db7;p=sane-kds-s2000w-net.git free pointer to null --- diff --git a/src/kds_s2000w_handler.c b/src/kds_s2000w_handler.c index cf93384..4c2ab9e 100644 --- a/src/kds_s2000w_handler.c +++ b/src/kds_s2000w_handler.c @@ -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)