mempool/dpaa: fix leak in pool creation failure
authorLi Qiang <liq3ea@163.com>
Tue, 9 Apr 2019 14:56:21 +0000 (07:56 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Jul 2019 15:20:33 +0000 (17:20 +0200)
commitd37f5f279bb72f72ac47a31da7761d81e70b48ae
tree95d7b8b8de733ffbfe6a8999d0864981b615020c
parentcea66312b4648326153a456f510fed399b5044df
mempool/dpaa: fix leak in pool creation failure

When 'rte_zmalloc' failed dpaa_mbuf_create_pool() forgets freeing
'bp' thus leading resource leak. This patch avoids this.

Coverity issue: 337679

Signed-off-by: Li Qiang <liq3ea@163.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/mempool/dpaa/dpaa_mempool.c