summaryrefslogtreecommitdiff
path: root/lib/command_match.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command_match.c')
-rw-r--r--lib/command_match.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/command_match.c b/lib/command_match.c
index 5ba1c1b6e7..305e3b1a68 100644
--- a/lib/command_match.c
+++ b/lib/command_match.c
@@ -272,14 +272,15 @@ match_command_complete (struct graph_node *start, const char *line)
* current = set of all transitions from the previous input token
* next = set of all nodes reachable from all nodes in `matched`
*/
- list_free (current);
- cmd_free_strvec(vline);
matcher_result_value =
idx + 1 == vector_active(vline) && next->count ?
MATCHER_OK :
MATCHER_NO_MATCH;
+ list_free (current);
+ cmd_free_strvec(vline);
+
return next;
}