diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-31 13:31:03 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-31 14:11:40 +0200 |
commit | 33f7fbc42d0490b27e33275d0fc74d3ef55683e4 (patch) | |
tree | 6236dbdd0e208905050d85ed57b2dfc5beb9abcf /nest | |
parent | 4fec43067e27c7a6c20a6ef9909bef0238984a64 (diff) |
CLI: Fix bug in symbol handling introduced in previous patches
Diffstat (limited to 'nest')
-rw-r--r-- | nest/cli.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -261,6 +261,7 @@ cli_command(struct cli *c) log(L_TRACE "CLI: %s", c->rx_buf); bzero(&f, sizeof(f)); f.mem = c->parser_pool; + f.pool = rp_new(c->pool, "Config"); cf_read_hook = cli_cmd_read_hook; cli_rh_pos = c->rx_buf; cli_rh_len = strlen(c->rx_buf); @@ -270,6 +271,8 @@ cli_command(struct cli *c) res = cli_parse(&f); if (!res) cli_printf(c, 9001, f.err_msg); + + config_free(&f); } static void |