[coverity] 1543065 Resource leak

This commit is contained in:
akallabeth 2024-04-11 12:30:00 +02:00 committed by Martin Fleisz
parent e063d26bfe
commit da85ec371c

View File

@ -777,7 +777,6 @@ static BOOL rdp_client_establish_keys(rdpRdp* rdp)
Stream_Zero(s, 8);
Stream_SealLength(s);
status = transport_write(rdp->mcs->transport, s);
Stream_Free(s, TRUE);
if (status < 0)
goto end;
@ -824,6 +823,7 @@ static BOOL rdp_client_establish_keys(rdpRdp* rdp)
ret = TRUE;
end:
Stream_Free(s, TRUE);
free(crypt_client_random);
if (!ret)