pipeline: fix selector freeing
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Mon, 12 Jul 2021 18:18:32 +0000 (19:18 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 21 Jul 2021 11:51:17 +0000 (13:51 +0200)
commit40d42de563e2f0a1fd2062daa05fd3bb0ae3c44a
tree3e3e8d1aa4ef729a093eef99a625b54ef6921de7
parentcf1e803508009917f41dd5bb347e4140043afe03
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: cdaa937d3eaab ("pipeline: support selector table")

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/pipeline/rte_swx_ctl.c