BUG/MINOR: ssl_ckch: Free error msg if commit changes on a CA/CRL entry fails

On the CLI, If we fail to commit changes on a CA or a CRL entry, an error
message is returned. This error must be released.

This patch must be backported as far as 2.4.
This commit is contained in:
Christopher Faulet 2022-05-31 18:03:26 +02:00
parent 01a09e24ad
commit 4329dcc2fc

View File

@ -2941,6 +2941,7 @@ error:
applet_putchk(appctx, trash);
free_trash_chunk(trash);
}
free(err);
/* error: call the release function and don't come back */
return 1;
}