Fix memory leaks in client/encomsp_main.c and client/remdesk_main.c
(cherry picked from commit 28e29f8ad568b195a9d6a1d785eaa81da13f93ff)
This commit is contained in:
Родитель
39c5243247
Коммит
fa647175cb
|
@ -1116,8 +1116,11 @@ static DWORD WINAPI encomsp_virtual_channel_client_thread(LPVOID arg)
|
|||
if ((error = encomsp_process_receive(encomsp, data)))
|
||||
{
|
||||
WLog_ERR(TAG, "encomsp_process_receive failed with error %" PRIu32 "!", error);
|
||||
Stream_Free(data, TRUE);
|
||||
break;
|
||||
}
|
||||
|
||||
Stream_Free(data, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -843,8 +843,11 @@ static DWORD WINAPI remdesk_virtual_channel_client_thread(LPVOID arg)
|
|||
if ((error = remdesk_process_receive(remdesk, data)))
|
||||
{
|
||||
WLog_ERR(TAG, "remdesk_process_receive failed with error %" PRIu32 "!", error);
|
||||
Stream_Free(data, TRUE);
|
||||
break;
|
||||
}
|
||||
|
||||
Stream_Free(data, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче