diff options
Diffstat (limited to 'app/test/test_reorder.c')
-rw-r--r-- | app/test/test_reorder.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/test/test_reorder.c b/app/test/test_reorder.c index e8a0a2f2..26dab0c2 100644 --- a/app/test/test_reorder.c +++ b/app/test/test_reorder.c @@ -362,9 +362,20 @@ test_setup(void) return 0; } +static void +test_teardown(void) +{ + rte_reorder_free(test_params->b); + test_params->b = NULL; + rte_mempool_free(test_params->p); + test_params->p = NULL; +} + + static struct unit_test_suite reorder_test_suite = { .setup = test_setup, + .teardown = test_teardown, .suite_name = "Reorder Unit Test Suite", .unit_test_cases = { TEST_CASE(test_reorder_create), |