|
|
@@ -2403,6 +2403,7 @@ static char *parse_config(json_t *config, bool fileconf)
|
|
|
} else {
|
|
|
snprintf(err_buf, sizeof(err_buf), "Parsing JSON option %s: %s",
|
|
|
p, err);
|
|
|
+ free(name);
|
|
|
return err_buf;
|
|
|
}
|
|
|
}
|
|
|
@@ -6588,6 +6589,7 @@ void write_config(FILE *fcfg)
|
|
|
0 <= *(int *)opt->u.arg)
|
|
|
fprintf(fcfg, ",\n\"%s\" : \"%d\"", p+2, *(int *)opt->u.arg);
|
|
|
}
|
|
|
+ free(name);
|
|
|
}
|
|
|
|
|
|
/* Special case options */
|