diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-01-26 21:57:24 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-01-31 15:28:19 +0100 |
commit | 66d29a54a1325217295d19243a5003b65f6ededd (patch) | |
tree | ac9743de6af2489ebdcc78909e44310d2bcfcd4c /lib/vty.c | |
parent | lib: parser: fix allocation counting (diff) | |
download | frr-66d29a54a1325217295d19243a5003b65f6ededd.tar.xz frr-66d29a54a1325217295d19243a5003b65f6ededd.zip |
lib: clean up tab-completion memory counting
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/vty.c')
-rw-r--r-- | lib/vty.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -962,8 +962,6 @@ vty_complete_command (struct vty *vty) vty_backward_pure_word (vty); vty_insert_word_overwrite (vty, matched[0]); XFREE (MTYPE_TMP, matched[0]); - vector_only_index_free (matched); - return; break; case CMD_COMPLETE_LIST_MATCH: for (i = 0; matched[i] != NULL; i++) @@ -986,7 +984,7 @@ vty_complete_command (struct vty *vty) break; } if (matched) - vector_only_index_free (matched); + XFREE (MTYPE_TMP, matched); } static void |