From: Dan Fandrich Date: Fri, 22 Sep 2023 17:59:53 +0000 (-0700) Subject: wolfssh: do cleanup in Curl_ssh_cleanup X-Git-Tag: curl-8_4_0~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=739a9e8e124133ec1c375819f6534bb54fa22022;p=thirdparty%2Fcurl.git wolfssh: do cleanup in Curl_ssh_cleanup Closes: #11921 --- diff --git a/lib/easy.c b/lib/easy.c index 3cb2dfb3fe..e0bde371f8 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -303,9 +303,6 @@ void curl_global_cleanup(void) Curl_ssh_cleanup(); -#ifdef USE_WOLFSSH - (void)wolfSSH_Cleanup(); -#endif #ifdef DEBUGBUILD free(leakpointer); #endif diff --git a/lib/vssh/wolfssh.c b/lib/vssh/wolfssh.c index 306d299bcf..39cee50769 100644 --- a/lib/vssh/wolfssh.c +++ b/lib/vssh/wolfssh.c @@ -1168,6 +1168,7 @@ CURLcode Curl_ssh_init(void) } void Curl_ssh_cleanup(void) { + (void)wolfSSH_Cleanup(); } #endif /* USE_WOLFSSH */