[dpdk-dev] [PATCH] lpm: fix freeing memory

2016-11-06 Thread Thomas Monjalon
2016-11-03 18:15, Wei Dai: > The memory pointed by lpm->rules_tbl should also be freed > when memory malloc for tbl8 fails in rte_lpm_create_v1604( ). > And the memory pointed by lpm->tbl8 should also be freed > when the lpm object is freed in rte_lpm_free_v1604( ). > > Fixes: f1f7261838b3 ("lpm:

[dpdk-dev] [PATCH] lpm: fix freeing memory

2016-11-03 Thread Wei Dai
The memory pointed by lpm->rules_tbl should also be freed when memory malloc for tbl8 fails in rte_lpm_create_v1604( ). And the memory pointed by lpm->tbl8 should also be freed when the lpm object is freed in rte_lpm_free_v1604( ). Fixes: f1f7261838b3 ("lpm: add a new config structure for IPv4")