No need to keep global options around for client which doesn't use them.

This commit is contained in:
nicm 2015-09-09 12:09:21 +00:00
parent aceae73b9a
commit 67ee995cc1
2 changed files with 5 additions and 1 deletions

2
cfg.c
View File

@ -98,7 +98,7 @@ load_cfg(const char *path, struct cmd_q *cmdq, char **cause)
}
found = 0;
while ((buf = fparseln(f, NULL, &line, delim, 0))) {
while ((buf = fparseln(f, NULL, &line, delim, 0)) != NULL) {
log_debug("%s: %s", path, buf);
/* Skip empty lines. */

View File

@ -268,6 +268,10 @@ client_main(struct event_base *base, int argc, char **argv, int flags)
}
return (1);
}
options_free(&global_options);
options_free(&global_s_options);
options_free(&global_w_options);
environ_free(&global_environ);
/* Create imsg. */
imsg_init(&client_ibuf, fd);