Fixed memory leak in nla_send (#8193)

This commit is contained in:
akallabeth 2022-09-12 10:54:29 +02:00 committed by GitHub
parent 8d9a43de01
commit f8159cc18a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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