mempool: fix leak when creation fails
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 16 Feb 2016 14:40:10 +0000 (15:40 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 19 Feb 2016 15:17:45 +0000 (16:17 +0100)
commit86f36ff9578b5f3d697c8fcf6072dcb70e2b246f
treeb9c739f49bac0a731084c6336bb26da1e8f06b1e
parentca67ed289a76f38d6c4a4021985a36eaf1d77e28
mempool: fix leak when creation fails

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 <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.c