test/timer_perf: fix memory leak
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 6 Feb 2018 13:35:42 +0000 (13:35 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Feb 2018 18:45:29 +0000 (19:45 +0100)
Fixes: 277afaf3dbcb ("app/test: add timer_perf")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
test/test/test_timer_perf.c

index afa3a06..0fe2b74 100644 (file)
@@ -127,6 +127,7 @@ 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;
 }