mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 01:32:25 +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);
|
sfree(handles);
|
||||||
if (must_close_session)
|
if (must_close_session)
|
||||||
close_session();
|
close_session();
|
||||||
}
|
} else
|
||||||
|
sfree(handles);
|
||||||
sfree(handles);
|
|
||||||
|
|
||||||
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
|
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
|
||||||
if (msg.message == WM_QUIT)
|
if (msg.message == WM_QUIT)
|
||||||
|
Loading…
Reference in New Issue
Block a user