aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-10-23 14:27:53 +0000
committerNick Mathewson <nickm@torproject.org>2003-10-23 14:27:53 +0000
commit71e5ad714bd5c6111d31d1a2879e89d2227cb254 (patch)
treed6a1cb62342c0eb4b534ba82c01b3be44b15c0da /src
parent6b79d8a7e9d84de8193c6a749932674d1f41e047 (diff)
downloadtor-71e5ad714bd5c6111d31d1a2879e89d2227cb254.tar
tor-71e5ad714bd5c6111d31d1a2879e89d2227cb254.tar.gz
resolve warning
svn:r664
Diffstat (limited to 'src')
-rw-r--r--src/common/tortls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index a665909bb..181e6df7f 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;