]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
wolfssh: do cleanup in Curl_ssh_cleanup
authorDan Fandrich <dan@coneharvesters.com>
Fri, 22 Sep 2023 17:59:53 +0000 (10:59 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Sun, 24 Sep 2023 06:15:11 +0000 (23:15 -0700)
Closes: #11921
lib/easy.c
lib/vssh/wolfssh.c

index 3cb2dfb3fe50d6630b65ba4d134337dbd1ca893e..e0bde371f852581b8529409e5434201fe49b2e98 100644 (file)
@@ -303,9 +303,6 @@ void curl_global_cleanup(void)
 
   Curl_ssh_cleanup();
 
-#ifdef USE_WOLFSSH
-  (void)wolfSSH_Cleanup();
-#endif
 #ifdef DEBUGBUILD
   free(leakpointer);
 #endif
index 306d299bcf18f082514116ffd058c051789453b3..39cee50769206675aa93332dab588ee3c6d5a234 100644 (file)
@@ -1168,6 +1168,7 @@ CURLcode Curl_ssh_init(void)
 }
 void Curl_ssh_cleanup(void)
 {
+  (void)wolfSSH_Cleanup();
 }
 
 #endif /* USE_WOLFSSH */