member: fix memory leak on error
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 12 Jan 2018 17:23:16 +0000 (17:23 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 18 Jan 2018 23:43:56 +0000 (00:43 +0100)
commit5988076ac3393a0ca46e8dca0baa4d0c4f672b44
tree88c48d2b288761fe731aa167d714e23ca6b856fd
parent9ac7f8e57290df0e1d3da6c33010feb5ccb66dfb
member: fix memory leak on error

rte_member may have allocated a tailq entry or setum before failure,
so free them.

Fixes: 857ed6c68cf2 ("member: implement main API")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
lib/librte_member/rte_member.c