libfreerdp-core: fix memory leaks.

This commit is contained in:
Vic Lee 2012-06-28 15:26:19 +08:00
parent ba784fde67
commit ad9419705a
2 changed files with 1 additions and 2 deletions

View File

@ -938,8 +938,6 @@ rdpRdp* rdp_new(freerdp* instance)
void rdp_free(rdpRdp* rdp)
{
return;
if (rdp != NULL)
{
crypto_rc4_free(rdp->rc4_decrypt_key);

View File

@ -526,6 +526,7 @@ void transport_free(rdpTransport* transport)
tls_free(transport->tls);
tcp_free(transport->tcp);
tcp_free(transport->tcp_in);
tsg_free(transport->tsg);
xfree(transport);