aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-30 13:24:09 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-30 13:29:34 +0800
commita4b446b4596a243363b386ca8f26b63d0fb005dc (patch)
tree2981b5015eb7892c446d56566a57b90a7603d5fa /openbsc/src/vty
parentf1af306c94358c0de62d0487e543e518083d5710 (diff)
[vty] Free the matched at the end of the routine.
Remove the return from the case labels and cleanup at the end matched array at the end of the routine.
Diffstat (limited to 'openbsc/src/vty')
-rw-r--r--openbsc/src/vty/vty.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/openbsc/src/vty/vty.c b/openbsc/src/vty/vty.c
index fffa649c7..08068560b 100644
--- a/openbsc/src/vty/vty.c
+++ b/openbsc/src/vty/vty.c
@@ -916,8 +916,6 @@ static void vty_complete_command(struct vty *vty)
vty_insert_word_overwrite(vty, matched[0]);
vty_self_insert(vty, ' ');
talloc_free(matched[0]);
- vector_only_index_free(matched);
- return;
break;
case CMD_COMPLETE_MATCH:
vty_prompt(vty);
@@ -925,8 +923,6 @@ static void vty_complete_command(struct vty *vty)
vty_backward_pure_word(vty);
vty_insert_word_overwrite(vty, matched[0]);
talloc_free(matched[0]);
- vector_only_index_free(matched);
- return;
break;
case CMD_COMPLETE_LIST_MATCH:
for (i = 0; matched[i] != NULL; i++) {