From: Nick Mathewson Date: Thu, 23 Oct 2003 14:27:53 +0000 (+0000) Subject: resolve warning X-Git-Tag: tor-0.0.2pre14~186 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71e5ad714bd5c6111d31d1a2879e89d2227cb254;p=thirdparty%2Ftor.git resolve warning svn:r664 --- diff --git a/src/common/tortls.c b/src/common/tortls.c index a665909bb2..181e6df7f9 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -274,7 +274,8 @@ tor_tls_context_new(crypto_pk_env_t *rsa, if (global_tls_context) { /* This is safe even if there are open connections: OpenSSL does * reference counting with SSL and SSL_CTX objects. */ - SSL_CTX_free(global_tls_context); + SSL_CTX_free(global_tls_context->ctx); + free(global_tls_context); } global_tls_context = result; return 0;