From 36b485e48fd1cf0eb195a4e13dc326f5485874d4 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Thu, 28 Apr 2011 20:02:19 +0200 Subject: [PATCH] Don't free the context. --- src/SSLSocket.m | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/SSLSocket.m b/src/SSLSocket.m index 454c9bb..c303912 100644 --- a/src/SSLSocket.m +++ b/src/SSLSocket.m @@ -73,7 +73,6 @@ static SSL_CTX *ctx; - (void)dealloc { - SSL_CTX *ctx_ = ctx; SSL *ssl_ = ssl; [privateKeyFile release]; @@ -83,8 +82,6 @@ static SSL_CTX *ctx; if (ssl_ != NULL) SSL_free(ssl_); - if (ctx_ != NULL) - SSL_CTX_free(ctx_); } - (void)connectToHost: (OFString*)host