Qi Zhang 04221f0b3e 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 <jeb.j.cramer@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
2019-07-24 16:00:57 +02:00
..
2019-06-13 23:54:29 +09:00
2019-07-23 14:31:36 +02:00
2019-07-23 14:31:35 +02:00
2019-07-24 16:00:57 +02:00
2019-07-23 14:31:35 +02:00
2019-07-08 21:26:52 +02:00
2019-07-23 14:31:36 +02:00
2019-07-23 14:31:36 +02:00
2019-07-23 14:31:34 +02:00