eventdev: fix memory leakage on thread creation failure
authorChengwen Feng <fengchengwen@huawei.com>
Fri, 30 Apr 2021 09:34:38 +0000 (17:34 +0800)
committerJerin Jacob <jerinj@marvell.com>
Mon, 3 May 2021 09:46:26 +0000 (11:46 +0200)
commitf6681ab76bc5983f0571aaa4154ef839978c1088
treef347549849f1fed415d37f5e45cbeaf05d914c1e
parent0bac9fc7915483500f0e37f1cd66d1b6fa55308b
eventdev: fix memory leakage on thread creation failure

This patch fixes the issue that epoll_events memory is not released
after the intr thread created fail.

Fixes: 3810ae435783 ("eventdev: add interrupt driven queues to Rx adapter")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
lib/eventdev/rte_event_eth_rx_adapter.c