[channels,rdpear] fix leak in rdpear_prepare_response

This commit is contained in:
akallabeth 2024-09-14 08:31:12 +02:00
parent dbe92795e3
commit 0b9d35235b
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}