From: Ondrej Zajicek (work) Date: Wed, 31 May 2017 11:31:03 +0000 (+0200) Subject: CLI: Fix bug in symbol handling introduced in previous patches X-Git-Tag: v2.0.0~67^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33f7fbc42d0490b27e33275d0fc74d3ef55683e4;p=thirdparty%2Fbird.git CLI: Fix bug in symbol handling introduced in previous patches --- diff --git a/nest/cli.c b/nest/cli.c index 83e79616f..face409d4 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