libfreerdp-crypto: fix a small memory leak.

This commit is contained in:
Vic Lee 2012-06-28 15:06:18 +08:00
parent f76a50c53b
commit 71e7e1c23d
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,8 @@ boolean tls_accept(rdpTls* tls, const char* cert_file, const char* privatekey_fi
return false;
}
xfree(cert);
if (SSL_set_fd(tls->ssl, tls->sockfd) < 1)
{
printf("SSL_set_fd failed\n");