[dpdk-dev] [PATCH] mempool: fix leak when mempool creation fails

2016-02-19 Thread Thomas Monjalon
2016-02-16 15:40, Olivier Matz: > Since commits ff909fe21f and 4e32101f9b, it is now possible to free > memzones and rings. > > The rte_mempool_create() should be modified to take advantage of this > and not leak memory when an allocation fails. > > Signed-off-by: Olivier Matz Applied, thanks

[dpdk-dev] [PATCH] mempool: fix leak when mempool creation fails

2016-02-16 Thread Olivier Matz
Since commits ff909fe21f and 4e32101f9b, it is now possible to free memzones and rings. The rte_mempool_create() should be modified to take advantage of this and not leak memory when an allocation fails. Signed-off-by: Olivier Matz --- lib/librte_mempool/rte_mempool.c | 28 +