(cherry picked from commit efe319a03fd1d2b0f2d1e80e0ea0e0a6177f3bb3) Source commit: 16ed4c873f53af2a63f50ae0433cdecf9494d6e6
@@ -79,6 +79,7 @@ void __fastcall PuttyFinalize()
win_misc_cleanup();
win_secur_cleanup();
ec_cleanup();
+ wingss_cleanup();
DeleteCriticalSection(&putty_section);
}
//---------------------------------------------------------------------------
@@ -31,6 +31,8 @@ int have_any_ssh2_hostkey(Seat * seat, const char * host, int port);
#include "sshgss.h"
#endif
+void wingss_cleanup(void);
+
// from portfwd.c
int is_pfwd(Plug * plug);
@@ -748,3 +748,16 @@ void ssh_gss_init(void)
+#ifdef WINSCP
+void wingss_cleanup(void)
+{
+ if (libraries_to_never_unload != NULL)
+ {
+ freetree234(libraries_to_never_unload);
+ libraries_to_never_unload = NULL;
+ }
+}
+#endif