Memory leak fixes from @elisamanfrin.

Fixes issue #4.
This commit is contained in:
Jack Moffitt
2012-02-07 22:46:23 -07:00
parent 9b50b56dbb
commit ee8afdb64e
2 changed files with 3 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ tls_t *tls_new(xmpp_ctx_t *ctx, sock_t sock)
void tls_free(tls_t *tls)
{
SSL_free(tls->ssl);
SSL_CTX_free(tls->ssl_ctx);
xmpp_free(tls->ctx, tls);
return;