test/threads: add unit test
[dpdk.git] / app / test / test_pcapng.c
index 34c5e12..320dace 100644 (file)
@@ -240,8 +240,7 @@ test_validate(void)
 static void
 test_cleanup(void)
 {
-       if (mp)
-               rte_mempool_free(mp);
+       rte_mempool_free(mp);
 
        if (pcapng)
                rte_pcapng_close(pcapng);