channels: cliprdr: client: fix leak in cliprdr_packet_send

This commit is contained in:
kubistika 2019-10-18 15:02:59 +03:00 committed by akallabeth
parent d75c5eec04
commit 5cc5aa98ec

View File

@ -96,8 +96,11 @@ static UINT cliprdr_packet_send(cliprdrPlugin* cliprdr, wStream* s)
}
if (status != CHANNEL_RC_OK)
{
Stream_Free(s, TRUE);
WLog_ERR(TAG, "VirtualChannelWrite failed with %s [%08"PRIX32"]",
WTSErrorToString(status), status);
}
return status;
}