New upstream version 16.11.5
[deb_dpdk.git] / app / test / test_timer_perf.c
index 3f7ddd3..f6bbdf3 100644 (file)
@@ -155,11 +155,8 @@ test_timer_perf(void)
        printf("Time per rte_timer_manage with zero callbacks: %"PRIu64" cycles\n",
                        (end_tsc - start_tsc + iterations/2) / iterations);
 
+       rte_free(tms);
        return 0;
 }
 
-static struct test_command timer_perf_cmd = {
-       .command = "timer_perf_autotest",
-       .callback = test_timer_perf,
-};
-REGISTER_TEST_COMMAND(timer_perf_cmd);
+REGISTER_TEST_COMMAND(timer_perf_autotest, test_timer_perf);