From 6bbe2fe8cd44c4a3a78496ea5c3173961c61a2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Sun, 25 Feb 2024 17:14:28 +0100 Subject: [PATCH] Revert "tls.c: need to free SSL_SESSION when removing it from cache" This reverts commit a3523d4067c502a52cb7ee859c1493d1a980b7e0. Closes: https://github.com/cyrusimap/cyrus-imapd/issues/4785 --- imap/tls.c | 1 - 1 file changed, 1 deletion(-) diff --git a/imap/tls.c b/imap/tls.c index cee70d9b92..31de7a757f 100644 --- a/imap/tls.c +++ b/imap/tls.c @@ -637,7 +637,6 @@ static void remove_session_cb(SSL_CTX *ctx __attribute__((unused)), session_id = SSL_SESSION_get_id(sess, &session_id_length); remove_session(session_id, session_id_length); - SSL_SESSION_free(sess); } /*