summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-31 14:12:03 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-31 14:12:03 +0200
commit801fd81efea5bf51fe459d951e4be95119798b2b (patch)
treefb0919e974fdac241ce1332d4e2d73bb5185a80b
parent77810030d2556e3af659d354a2b3d661f58dd735 (diff)
parent33f7fbc42d0490b27e33275d0fc74d3ef55683e4 (diff)
Merge branch 'master' into int-new
-rw-r--r--nest/cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/cli.c b/nest/cli.c
index aceb5770..ad81d384 100644
--- a/nest/cli.c
+++ b/nest/cli.c
@@ -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