summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vtysh/vtysh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 1b0dd8cd29..48f608b8b2 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -832,7 +832,7 @@ command_generator (const char *text, int state)
vector_set (vline, NULL);
if (matched)
- XFREE (MTYPE_TMP, matched);
+ vector_only_index_free (matched);
matched = cmd_complete_command (vline, vty, &complete_status);
cmd_free_strvec (vline);
}