Fixed coverity issue 1047621

This commit is contained in:
Armin Novak 2013-08-28 16:19:33 +02:00
parent 57569229db
commit c05daf9f74

View File

@ -689,6 +689,10 @@ static BOOL rfx_process_message_tileset(RFX_CONTEXT* context, RFX_MESSAGE* messa
if (Stream_GetRemainingLength(s) < 6)
{
DEBUG_WARN("RfxMessageTileSet packet too small to read tile %d/%d", i, message->numTiles);
if (work_objects)
free(work_objects);
if (params)
free(params);
return FALSE;
}
@ -697,7 +701,12 @@ static BOOL rfx_process_message_tileset(RFX_CONTEXT* context, RFX_MESSAGE* messa
if (Stream_GetRemainingLength(s) < blockLen - 6)
{
DEBUG_WARN("RfxMessageTileSet not enough bytes to read tile %d/%d with blocklen=%d", i, message->numTiles, blockLen);
DEBUG_WARN("RfxMessageTileSet not enough bytes to read tile %d/%d with blocklen=%d",
i, message->numTiles, blockLen);
if (work_objects)
free(work_objects);
if (params)
free(params);
return FALSE;
}