mirror of https://github.com/FreeRDP/FreeRDP
Fix memory leaks in client/encomsp_main.c and client/remdesk_main.c
(cherry picked from commit 28e29f8ad5
)
This commit is contained in:
parent
39c5243247
commit
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue