From: Bastian Dehn Date: Sun, 5 Jan 2025 08:27:34 +0000 (+0100) Subject: cleanup client failed open session X-Git-Tag: v1.0.24^2~13 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=27b159b59c9036e211ca3e48c32cda1384385ea8;p=sane-kds-s2000w-net.git cleanup client failed open session --- diff --git a/src/kds_s2000w_handler.c b/src/kds_s2000w_handler.c index c35523b..2f19998 100644 --- a/src/kds_s2000w_handler.c +++ b/src/kds_s2000w_handler.c @@ -312,6 +312,7 @@ void kds_s2000w_handler_open(const char* devicename, void** handle) if (result != 0 || resp->code != 200) { kds_s2000w_client_response_free(resp); resp = NULL; + kds_s2000w_client_free(); return; }