diff --git a/channels/rdpear/client/rdpear_main.c b/channels/rdpear/client/rdpear_main.c index 4a54cca1e..a117740e6 100644 --- a/channels/rdpear/client/rdpear_main.c +++ b/channels/rdpear/client/rdpear_main.c @@ -267,6 +267,8 @@ static BOOL rdpear_prepare_response(NdrContext* rcontext, UINT16 callId, UINT32 *pwcontext = wcontext; ret = TRUE; out: + if (!ret) + ndr_context_destroy(&wcontext); return ret; }