From c9b552534e5a256782caf296553edc443c65427a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 27 Sep 2003 07:33:28 +0000 Subject: [PATCH] Free the Kerberos context upon freeing the SSL. Contributed by Andrew Mann --- ssl/ssl_lib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index ddd8114587..6d69890688 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -473,6 +473,11 @@ void SSL_free(SSL *s) if (s->method != NULL) s->method->ssl_free(s); +#ifndef OPENSSL_NO_KRB5 + if (s->kssl_ctx != NULL) + kssl_ctx_free(s->kssl_ctx); +#endif /* OPENSSL_NO_KRB5 */ + OPENSSL_free(s); } -- 2.25.1