pipeline: fix selector freeing

Due to a typo, the selector_free() function incorrectly takes an early
return when the selectors array is non-NULL, as opposed to the other
way around.

Coverity issue: 371912
Fixes: cdaa937d3e ("pipeline: support selector table")

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
Cristian Dumitrescu 2021-07-12 19:18:32 +01:00 committed by Thomas Monjalon
parent cf1e803508
commit 40d42de563

View File

@ -815,7 +815,7 @@ selector_free(struct rte_swx_ctl_pipeline *ctl)
{
uint32_t i;
if (ctl->selectors)
if (!ctl->selectors)
return;
for (i = 0; i < ctl->info.n_selectors; i++) {