From 739a9e8e124133ec1c375819f6534bb54fa22022 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 22 Sep 2023 10:59:53 -0700 Subject: [PATCH] wolfssh: do cleanup in Curl_ssh_cleanup Closes: #11921 --- lib/easy.c | 3 --- lib/vssh/wolfssh.c | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) 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 */ -- 2.47.3