aboutsummaryrefslogtreecommitdiff
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-01-30 11:00:34 +0000
committerRichard Levitte <levitte@openssl.org>2003-01-30 11:00:34 +0000
commit2e60ea7634125fcad082cc4b493e429ee440ea83 (patch)
tree8fbddcbe3895e7164c663f501870c63ea62fd1fa /ssl/ssl_lib.c
parent4e78074b39063d19ebab54209d5cf6eceb770141 (diff)
downloadopenssl-2e60ea7634125fcad082cc4b493e429ee440ea83.zip
openssl-2e60ea7634125fcad082cc4b493e429ee440ea83.tar.gz
openssl-2e60ea7634125fcad082cc4b493e429ee440ea83.tar.bz2
Fix a memory leak in SSL.
PR: 477
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 68c7ae7..ea76cf1 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -2047,6 +2047,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);