mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-28 12:24:41 +08:00
channels: cliprdr: client: fix leak in cliprdr_packet_send
This commit is contained in:
parent
d75c5eec04
commit
5cc5aa98ec
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user