1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Kai Jourdan spotted a rather embarrassing double-free, and Minefield

confirms that it's a real problem.

[originally from svn r7168]
This commit is contained in:
Simon Tatham 2007-01-26 14:06:08 +00:00
parent 0cc2540abb
commit b3a5cdc5fb

View File

@ -816,9 +816,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
sfree(handles);
if (must_close_session)
close_session();
}
sfree(handles);
} else
sfree(handles);
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
if (msg.message == WM_QUIT)