summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-01-26 21:57:24 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-31 15:28:19 +0100
commit66d29a54a1325217295d19243a5003b65f6ededd (patch)
treeac9743de6af2489ebdcc78909e44310d2bcfcd4c /lib/vty.c
parentlib: parser: fix allocation counting (diff)
downloadfrr-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 9413d003e..e70079c52 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -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