From: Phil Yang Date: Mon, 15 Jan 2018 05:43:32 +0000 (+0800) Subject: test/memzone: fix NULL freeing X-Git-Tag: spdx-start~235 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a7b5b4f1b3febec68dc7b8ba339f4b222750952b;p=dpdk.git test/memzone: fix NULL freeing No need to free a NULL memzone. It will cause test termination. Fixes: 71330483a193 ("test/memzone: fix memory leak") Cc: stable@dpdk.org Signed-off-by: Phil Yang Acked-by: Jianbo Liu Acked-by: Anatoly Burakov --- diff --git a/test/test/test_memzone.c b/test/test/test_memzone.c index 83c94eb1ca..151a997a8c 100644 --- a/test/test/test_memzone.c +++ b/test/test/test_memzone.c @@ -251,10 +251,6 @@ test_memzone_reserve_flags(void) printf("MEMZONE FLAG 2MB\n"); return -1; } - if (rte_memzone_free(mz)) { - printf("Fail memzone free\n"); - return -1; - } } if (hugepage_2MB_avail && hugepage_1GB_avail) {