From: Cristian Dumitrescu Date: Tue, 6 Oct 2020 20:37:53 +0000 (+0100) Subject: pipeline: fix resource leak X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=faa453668482acc7e8c3681c418efb9d384b5a07;p=dpdk.git pipeline: fix resource leak Coverity issue: 362812 Fixes: b32c0a2c5e ("pipeline: add SWX table update high level API") Signed-off-by: Cristian Dumitrescu --- diff --git a/lib/librte_pipeline/rte_swx_ctl.c b/lib/librte_pipeline/rte_swx_ctl.c index 9d986a83ee..ee6df4544f 100644 --- a/lib/librte_pipeline/rte_swx_ctl.c +++ b/lib/librte_pipeline/rte_swx_ctl.c @@ -371,7 +371,7 @@ table_entry_duplicate(struct rte_swx_ctl_pipeline *ctl, } } - return entry; + return new_entry; error: table_entry_free(new_entry);