Fix memory leaks in client/encomsp_main.c and client/remdesk_main.c

(cherry picked from commit 28e29f8ad5)
This commit is contained in:
Patrick Chin 2020-05-29 23:29:58 +01:00 committed by akallabeth
parent 39c5243247
commit fa647175cb
2 changed files with 6 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}