]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add curl free
authorBastian Dehn <hhaalo@arcor.de>
Wed, 28 Feb 2024 19:13:35 +0000 (20:13 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 28 Feb 2024 19:13:35 +0000 (20:13 +0100)
src/kds_s2000w_client.c

index 6885761800a62e636bcfe0b5c991dfd53324bbdc..5624219fa1168cfd2f95531c3116e6c41e82cf8f 100644 (file)
@@ -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