The ckch_conf_parse() function is the generic function which parses
crt-store keywords from the crt-store section, and also from a crt-list.
When having multiple time the same keyword, a leak of the previous value
happens. This patch ensure that the previous value is always freed
before overwriting it.
This patch should be backported as far as 3.0.
if (ckch_conf_kws[i].type == PARSE_TYPE_STR) {
char **t = target;
+ ha_free(t);
*t = strdup(args[cur_arg + 1]);
if (!*t) {
ha_alert("parsing [%s:%d]: out of memory.\n", file, linenum);