Source commit: 6bd7fbab73565dba31fe9295c1f896ba8252db28
@@ -61,6 +61,7 @@ void __fastcall PuttyFinalize()
sk_cleanup();
win_misc_cleanup();
+ win_secur_cleanup();
DeleteCriticalSection(&putty_section);
}
//---------------------------------------------------------------------------
@@ -80,4 +80,8 @@ void win_misc_cleanup();
const char * get_putty_version();
+// from winsecur.c
+
+void win_secur_cleanup(void);
#endif
@@ -15,6 +15,16 @@
/* Initialised once, then kept around to reuse forever */
static PSID worldsid, networksid, usersid;
+#ifdef MPEXT
+void win_secur_cleanup(void)
+{
+ if (usersid)
+ {
+ sfree(usersid);
+ usersid = NULL;
+ }
+}
+#endif
int got_advapi(void)
{