зеркало из https://github.com/github/putty.git
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:
Родитель
0cc2540abb
Коммит
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче