From faa453668482acc7e8c3681c418efb9d384b5a07 Mon Sep 17 00:00:00 2001 From: Cristian Dumitrescu Date: Tue, 6 Oct 2020 21:37:53 +0100 Subject: [PATCH] pipeline: fix resource leak Coverity issue: 362812 Fixes: b32c0a2c5e ("pipeline: add SWX table update high level API") Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1