Merge pull request #259 from opensourcerouting/vtysh-completion-mtype-underflow

vtysh: fix completion
This commit is contained in:
Quentin Young 2017-03-07 13:24:12 -05:00 committed by GitHub
commit 72c62cb803

View File

@ -832,7 +832,7 @@ command_generator (const char *text, int state)
vector_set (vline, NULL); vector_set (vline, NULL);
if (matched) if (matched)
XFREE (MTYPE_TMP, matched); vector_only_index_free (matched);
matched = cmd_complete_command (vline, vty, &complete_status); matched = cmd_complete_command (vline, vty, &complete_status);
cmd_free_strvec (vline); cmd_free_strvec (vline);
} }