From 855d7fe21da15f9385588c2b9bdf875b44ebef33 Mon Sep 17 00:00:00 2001 From: Fei Deng Date: Mon, 27 Sep 2021 10:43:49 -0500 Subject: [PATCH] free sessions when timeout --- iocore/net/TLSSessionResumptionSupport.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/iocore/net/TLSSessionResumptionSupport.cc b/iocore/net/TLSSessionResumptionSupport.cc index e8e981e7639..31575c5ed7a 100644 --- a/iocore/net/TLSSessionResumptionSupport.cc +++ b/iocore/net/TLSSessionResumptionSupport.cc @@ -160,6 +160,7 @@ TLSSessionResumptionSupport::getSession(SSL *ssl, const unsigned char *id, int l #if 0 // This is currently eliminated, since it breaks things in odd ways (see TS-3710) ssl_rm_cached_session(SSL_get_SSL_CTX(ssl), session); #endif + SSL_SESSION_free(session); session = nullptr; } else { SSL_INCREMENT_DYN_STAT(ssl_session_cache_hit);