From: Santosh Shukla Date: Thu, 21 Jul 2016 11:49:47 +0000 (+0530) Subject: app/test: fix mempool freeing X-Git-Tag: spdx-start~6128 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cdc34f8721610a0807377a014cb5b49f43b3bf5e;p=dpdk.git app/test: fix mempool freeing test_mempool func not using pointer variable 'mp_ext' and incorrectly freed. So removing ptr var. Now freeing mp_stack var. Fixes: ea151eb48a04 ("app/test: migrate custom mempool handler to stack handler") Signed-off-by: Santosh Shukla Acked-by: Olivier Matz --- diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c index 46ad6702f5..3b21cf7678 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -506,7 +506,6 @@ test_mempool(void) { struct rte_mempool *mp_cache = NULL; struct rte_mempool *mp_nocache = NULL; - struct rte_mempool *mp_ext = NULL; struct rte_mempool *mp_stack = NULL; rte_atomic32_init(&synchro); @@ -605,7 +604,7 @@ test_mempool(void) err: rte_mempool_free(mp_nocache); rte_mempool_free(mp_cache); - rte_mempool_free(mp_ext); + rte_mempool_free(mp_stack); return -1; }