diff options
author | Benoît Ganne <bganne@cisco.com> | 2020-10-01 18:20:23 +0200 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2020-10-01 20:58:01 +0000 |
commit | 433a498683506e4e22b8304db22efb56ef24bdf9 (patch) | |
tree | 207547180302dc2495565ede34ba14f8d99f0b7b | |
parent | 362c666df000e78589ba966a42edfa1ef0ee288e (diff) |
vlib: fix line-mode cli memory leak
Type: fix
Change-Id: Iaf60ec93ee9750074f52ba4dbe955355de5dbccc
Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r-- | src/vlib/unix/cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/unix/cli.c b/src/vlib/unix/cli.c index e98eb3459fd..2f34c8deae2 100644 --- a/src/vlib/unix/cli.c +++ b/src/vlib/unix/cli.c @@ -2520,6 +2520,7 @@ unix_cli_line_edit (unix_cli_main_t * cm, unix_main_t * um, if (cf->line_mode) { vec_delete (cf->input_vector, i, 0); + vec_free (cf->current_command); cf->current_command = cf->input_vector; return 0; } |