Christian Ehrhardt d4c18f0a1d lpm: fix missing free
In rte_lpm_free lpm might not be freed if it didn't find a te (early return)

The two lpm interfaces rte_lpm_free_v20 and rte_lpm_free_v1604 had a leak.
rte_lpm_free_v20 might have missed to free rules_tbl
rte_lpm_free_v1604 due to an early exit might have missed to free
rules_tbl and lpm itself.

Fixes: 899d8bc9b3b5 ("lpm: make tailq fully local")

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2016-03-22 17:55:16 +01:00
..
2016-03-11 15:56:07 +01:00
2015-03-10 12:06:08 +01:00
2015-03-10 12:06:08 +01:00
2016-03-11 15:56:07 +01:00
2016-03-22 17:55:16 +01:00
2016-03-11 15:56:07 +01:00