From a7b5b4f1b3febec68dc7b8ba339f4b222750952b Mon Sep 17 00:00:00 2001 From: Phil Yang Date: Mon, 15 Jan 2018 13:43:32 +0800 Subject: [PATCH] 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 --- test/test/test_memzone.c | 4 ---- 1 file changed, 4 deletions(-) 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) { -- 2.20.1