Fixed a memory leak.

This commit is contained in:
Armin Novak 2018-02-09 10:23:48 +01:00
parent eb2da0844c
commit 25076cfce1

View File

@ -1595,6 +1595,7 @@ static UINT rdpgfx_get_surface_ids(RdpgfxClientContext* context,
if (!pSurfaceIds) if (!pSurfaceIds)
{ {
WLog_Print(gfx->log, WLOG_ERROR, "calloc failed!"); WLog_Print(gfx->log, WLOG_ERROR, "calloc failed!");
free(pKeys);
return CHANNEL_RC_NO_MEMORY; return CHANNEL_RC_NO_MEMORY;
} }