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:
parent
0cc2540abb
commit
b3a5cdc5fb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user