From 0e6c20da462da07faebe8b685b294e72b018cc43 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 27 Sep 2003 07:35:07 +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 ea76cf1172..0c84e3dddd 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -477,6 +477,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.40.0