net/e1000: fix MAC type checking
[dpdk.git] / app / test-pmd / testpmd.c
index a461cef..e8e2a39 100644 (file)
@@ -3212,7 +3212,8 @@ signal_handler(int signum)
                rte_pdump_uninit();
 #endif
 #ifdef RTE_LIBRTE_LATENCY_STATS
-               rte_latencystats_uninit();
+               if (latencystats_enabled != 0)
+                       rte_latencystats_uninit();
 #endif
                force_quit();
                /* Set flag to indicate the force termination. */