mirror of https://github.com/FreeRDP/FreeRDP
Fixed memory leak in nla_send (#8193)
This commit is contained in:
parent
8d9a43de01
commit
f8159cc18a
|
@ -2163,7 +2163,7 @@ static SECURITY_STATUS nla_decrypt_ts_credentials(rdpNla* nla)
|
|||
BOOL nla_send(rdpNla* nla)
|
||||
{
|
||||
BOOL rc = FALSE;
|
||||
wStream* s;
|
||||
wStream* s = NULL;
|
||||
size_t length;
|
||||
WinPrAsn1Encoder* enc;
|
||||
WinPrAsn1_OctetString octet_string;
|
||||
|
@ -2262,6 +2262,7 @@ BOOL nla_send(rdpNla* nla)
|
|||
rc = TRUE;
|
||||
|
||||
fail:
|
||||
Stream_Free(s, TRUE);
|
||||
WinPrAsn1Encoder_Free(&enc);
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue