]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_malloc.c
test/security: add ESN and anti-replay for inline IPsec
[dpdk.git] / app / test / test_malloc.c
index 8db500c514e7a9abd00768f06f5dd900d5eef43f..de40e506113a38980461b7ce73fc6f54553ccc41 100644 (file)
@@ -823,7 +823,7 @@ test_zero_aligned_alloc(void)
 
 err_return:
        /*clean up */
-       if (p1) rte_free(p1);
+       rte_free(p1);
        return -1;
 }
 
@@ -876,8 +876,7 @@ test_malloc_bad_params(void)
 
 err_return:
        /* clean up pointer */
-       if (bad_ptr)
-               rte_free(bad_ptr);
+       rte_free(bad_ptr);
        return -1;
 }