From 5cc5aa98ecc78d05501f413c966a2b891e68eb11 Mon Sep 17 00:00:00 2001 From: kubistika Date: Fri, 18 Oct 2019 15:02:59 +0300 Subject: [PATCH] channels: cliprdr: client: fix leak in cliprdr_packet_send --- channels/cliprdr/client/cliprdr_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/channels/cliprdr/client/cliprdr_main.c b/channels/cliprdr/client/cliprdr_main.c index d8e1c47..8238c2d 100644 --- a/channels/cliprdr/client/cliprdr_main.c +++ b/channels/cliprdr/client/cliprdr_main.c @@ -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; } -- 2.7.4