From: Bastian Dehn Date: Wed, 28 Feb 2024 19:13:35 +0000 (+0100) Subject: add curl free X-Git-Tag: v1.0.0^2~157 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=4757c23cd3f7a8ae78ece43b69f6867d86621931;p=sane-kds-s2000w-net.git add curl free --- diff --git a/src/kds_s2000w_client.c b/src/kds_s2000w_client.c index 6885761..5624219 100644 --- a/src/kds_s2000w_client.c +++ b/src/kds_s2000w_client.c @@ -74,6 +74,8 @@ int kds_s2000w_client_open_session(const char* username, response* response) url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } @@ -128,6 +130,8 @@ int kds_s2000w_client_status_session(int64_t sessionid, response* response) url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } @@ -161,6 +165,8 @@ int kds_s2000w_client_start_scan(int64_t sessionid, response* response) url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } @@ -194,6 +200,8 @@ int kds_s2000w_client_stop_scan(int64_t sessionid, response* response) url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } @@ -229,6 +237,8 @@ int kds_s2000w_client_get_metadata(int64_t sessionid, int img_number, response* url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } @@ -264,6 +274,8 @@ int kds_s2000w_client_get_image(int64_t sessionid, int img_number, response* res url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } @@ -299,6 +311,8 @@ int kds_s2000w_client_delete_image(int64_t sessionid, int img_number, response* url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } @@ -326,6 +340,8 @@ int kds_s2000w_client_get_capabilities(response* response) url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } @@ -358,6 +374,8 @@ int kds_s2000w_client_get_option(int64_t sessionid, response* response) url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } @@ -390,6 +408,8 @@ int kds_s2000w_client_set_option(int64_t sessionid, response* response) url_handler = NULL; curl_free(url); url = NULL; + curl_easy_cleanup(curl); + curl = NULL; return result; } \ No newline at end of file