Source commit: 21c2f09f91ebdc8d4049882c8d3b58c8658d5e36
@@ -2101,7 +2101,10 @@ bool __fastcall TSecureShell::EventSelectLoop(unsigned int MSec, bool ReadEventR
}
__finally
{
- handle_wait_list_free(WaitList);
+ if (WaitList != NULL)
+ {
+ handle_wait_list_free(WaitList);
+ }