From 01a09e24ad534e40184d57ee4eca479578e46ea9 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 31 May 2022 18:02:30 +0200 Subject: [PATCH] BUG/MINOR: ssl_ckch: Free error msg if commit changes on a cert entry fails On the CLI, If we fail to commit changes on a certificate entry, an error message is returned. This error must be released. This patch must be backported as far as 2.2. --- src/ssl_ckch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index f574fc46a..d0e5ce7ef 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -2154,6 +2154,7 @@ static int cli_io_handler_commit_cert(struct appctx *appctx) applet_putchk(appctx, trash); free_trash_chunk(trash); } + free(err); /* error: call the release function and don't come back */ return 1; }