Skip to content

Commit

Permalink
wolfssh: do cleanup in Curl_ssh_cleanup
Browse files Browse the repository at this point in the history
Closes: curl#11921
  • Loading branch information
dfandrich committed Sep 24, 2023
1 parent bb83f86 commit 739a9e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions lib/easy.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,6 @@ void curl_global_cleanup(void)

Curl_ssh_cleanup();

#ifdef USE_WOLFSSH
(void)wolfSSH_Cleanup();
#endif
#ifdef DEBUGBUILD
free(leakpointer);
#endif
Expand Down
1 change: 1 addition & 0 deletions lib/vssh/wolfssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ CURLcode Curl_ssh_init(void)
}
void Curl_ssh_cleanup(void)
{
(void)wolfSSH_Cleanup();
}

#endif /* USE_WOLFSSH */

0 comments on commit 739a9e8

Please sign in to comment.