summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-01-30 11:00:37 +0000
committerRichard Levitte <levitte@openssl.org>2003-01-30 11:00:37 +0000
commit8f94b2010f1d7813d9ca18a365cf59db37fa98ba (patch)
tree7ff7ab3add8596fa972624c703ad921c5a51db0f /ssl/ssl_lib.c
parentd48e6a47bd7d2073d50c932f0addcc3d5b8116a6 (diff)
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 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);