]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
CLI: Fix bug in symbol handling introduced in previous patches
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 31 May 2017 11:31:03 +0000 (13:31 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 31 May 2017 12:11:40 +0000 (14:11 +0200)
nest/cli.c

index 83e79616f8c42d02f45ff9e16fe352a087072c37..face409d49e803cd6e5d74ba2db3e82c66168b75 100644 (file)
@@ -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