net/ice/base: fix resource leak
net/ice/base: fix resource leak

We don't free s_rule if ice_aq_sw_rules() returns a non-zero status. If
it returned a zero status, s_rule would be freed right after, so this
implies it should be freed within the scope of the function regardless.

Fixes: c7dd15931183 ("net/ice/base: add virtual switch code")
Cc: stable@dpdk.org

Signed-off-by: Jeb Cramer <4d14c83b116edd229c0649ddabc53554dfddebae@intel.com>
Signed-off-by: Paul M Stillwell Jr <e9d07c711ed532f6e96975f8a0cb18bd224808b8@intel.com>
Signed-off-by: Qi Zhang <9e9e58ffa71a29bb7b87766b362515be648fcbe0@intel.com>
Acked-by: Qiming Yang <6f20802c8a43e38f9b475618bd31b5b1ac8c8656@intel.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk