From: Cristian Dumitrescu Date: Tue, 6 Oct 2020 20:37:49 +0000 (+0100) Subject: pipeline: fix memory leak X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bacfdd908d77819266c080a69b8492b993a0c89b;p=dpdk.git pipeline: fix memory leak Coverity issue: 362741 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 576fb2bf34..9d986a83ee 100644 --- a/lib/librte_pipeline/rte_swx_ctl.c +++ b/lib/librte_pipeline/rte_swx_ctl.c @@ -1463,6 +1463,7 @@ rte_swx_ctl_pipeline_table_entry_read(struct rte_swx_ctl_pipeline *ctl, arg_offset += arg->n_bits / 8; } + free(s0); return entry; error: