From 96d60288cf1560e522dbb6ab09e04ec3a879a80a Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Wed, 31 Mar 2021 11:49:27 +0200 Subject: [PATCH] BUG/MINOR: ssl: Add missing free on SSL_CTX in ckch_inst_free The ckch instance keeps a reference to its SSL_CTX since commit 358a822 ("BUG/MINOR: ssl: Fix update of default certificate") but this instance was not freed during the instance's deletion. It can be backported as far as 2.2 and where 358a822 is backported. --- src/ssl_ckch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index eeaa416..49f585d 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -913,6 +913,8 @@ void ckch_inst_free(struct ckch_inst *inst) ebmb_delete(&sni->name); free(sni); } + SSL_CTX_free(inst->ctx); + inst->ctx = NULL; LIST_DEL(&inst->by_ckchs); LIST_DEL(&inst->by_crtlist_entry); free(inst); -- 1.7.10.4