summaryrefslogtreecommitdiffstats
path: root/tests/lib/cli/test_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/cli/test_commands.c')
-rw-r--r--tests/lib/cli/test_commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/cli/test_commands.c b/tests/lib/cli/test_commands.c
index 48dd99d28..2a8d26317 100644
--- a/tests/lib/cli/test_commands.c
+++ b/tests/lib/cli/test_commands.c
@@ -130,7 +130,7 @@ static void test_load(void)
line[strlen(line) - 1] = '\0';
if (line[0] == '#')
continue;
- vector_set(test_cmds, XSTRDUP(MTYPE_STRVEC, line));
+ vector_set(test_cmds, XSTRDUP(MTYPE_TMP, line));
}
}
@@ -181,7 +181,7 @@ static void test_terminate(void)
vty_terminate();
for (i = 0; i < vector_active(test_cmds); i++)
- XFREE(MTYPE_STRVEC, vector_slot(test_cmds, i));
+ XFREE(MTYPE_TMP, vector_slot(test_cmds, i));
vector_free(test_cmds);
cmd_terminate();
}