There's an optional name, but till now it was not even saved into the
structure, let's keep it.
init_new_proxy(curr_defproxy);
proxy_preset_defaults(curr_defproxy);
curproxy = curr_defproxy;
+ curproxy->id = strdup(args[1]); // may be empty
curproxy->conf.args.file = curproxy->conf.file = strdup(file);
curproxy->conf.args.line = curproxy->conf.line = linenum;
defproxy.cap = PR_CAP_DEF | PR_CAP_LISTEN; /* all caps for now */
*/
void proxy_free_defaults(struct proxy *defproxy)
{
+ free(defproxy->id); defproxy->id = NULL;
free(defproxy->conf.file); defproxy->conf.file = NULL;
free(defproxy->check_command); defproxy->check_command = NULL;
free(defproxy->check_path); defproxy->check_path = NULL;