diff --git a/tests/cmd/command-t.c b/tests/cmd/command-t.c index 71efd398c5..7b285f921e 100644 --- a/tests/cmd/command-t.c +++ b/tests/cmd/command-t.c @@ -72,6 +72,7 @@ checkList(struct cmd_item *list, ...) list = list->next; el = va_arg(ap, char *); } + va_end(ap); if (el == NULL && list == NULL) { ok(1, "List has correct number of elements");