mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -05: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,8 +816,7 @@ 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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user