wolfssh: do cleanup in Curl_ssh_cleanup

Closes: #11921
This commit is contained in:
Dan Fandrich 2023-09-22 10:59:53 -07:00
parent bb83f86a74
commit 739a9e8e12
2 changed files with 1 additions and 3 deletions

View 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

View File

@ -1168,6 +1168,7 @@ CURLcode Curl_ssh_init(void)
}
void Curl_ssh_cleanup(void)
{
(void)wolfSSH_Cleanup();
}
#endif /* USE_WOLFSSH */