[channels,rdpgfx] fix memory leak on error

This commit is contained in:
akallabeth 2024-04-16 20:48:11 +02:00 committed by akallabeth
parent b7888e9b3b
commit 5301603548
1 changed files with 1 additions and 0 deletions

View File

@ -2093,6 +2093,7 @@ static UINT rdpgfx_on_data_received(IWTSVirtualChannelCallback* pChannelCallback
if (status < 0)
{
WLog_Print(gfx->log, WLOG_ERROR, "zgfx_decompress failure! status: %d", status);
free(pDstData);
return ERROR_INTERNAL_ERROR;
}