]> git.droids-corp.org - dpdk.git/commitdiff
pipeline: fix memory leak
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Tue, 6 Oct 2020 20:37:49 +0000 (21:37 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 8 Oct 2020 13:00:42 +0000 (15:00 +0200)
Coverity issue: 362741
Fixes: b32c0a2c5e ("pipeline: add SWX table update high level API")
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_pipeline/rte_swx_ctl.c

index 576fb2bf346f0836762dcf818ca191a541aca95c..9d986a83eef0b679bdaddd23ec617397ff8f3298 100644 (file)
@@ -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: