From: Richard Levitte Date: Thu, 30 Jan 2003 11:00:37 +0000 (+0000) Subject: Fix a memory leak in SSL. X-Git-Tag: OpenSSL_0_9_7a~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8f94b2010f1d7813d9ca18a365cf59db37fa98ba;p=oweals%2Fopenssl.git Fix a memory leak in SSL. PR: 477 --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 12c4488c3c..ddd8114587 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1896,6 +1896,7 @@ SSL *SSL_dup(SSL *s) * they should not both point to the same object, * and thus we can't use SSL_copy_session_id. */ + ret->method->ssl_free(ret); ret->method = s->method; ret->method->ssl_new(ret);