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: ea151eb48a
("app/test: migrate custom mempool handler to stack handler")
Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
parent
69238e3cbe
commit
cdc34f8721
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user