From e4db68c35d73a1453003cef6c2683dd4203f8963 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Tue, 22 Sep 2020 16:44:41 +1000 Subject: [PATCH] WFSSL-51 sessions not removed correctly --- libwfssl/src/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libwfssl/src/session.c b/libwfssl/src/session.c index 98e883dc..91d9b413 100644 --- a/libwfssl/src/session.c +++ b/libwfssl/src/session.c @@ -334,6 +334,7 @@ void remove_session_cb(SSL_CTX *ctx, SSL_SESSION * session) { (*e)->CallVoidMethod(e, c->session_context, sessionRemove, sessionId); (*javavm)->DetachCurrentThread(javavm); + ssl_methods.SSL_SESSION_free(session); } void setup_session_context(JNIEnv *e, tcn_ssl_ctxt_t *c) {