On Tue, 26 May 2020 19:24:55 +0200
Hrvoje Habjanic [off-list ref] wrote:
In function rte_sched_subport_free (lib/librte_sched/rte_sched.c,
line 865), there is code to free all allocated stuff related to
scheduler subport. First there are some checks, and in the end,
rte_bitmap_free is called.
Now, rte_bitmap_free is a dummy function, and it just checks if
provided pointer to bitmap is valid or not. So, actual memory for
subport is not freed.
This patch fixes this by removing call to rte_bitmap_free, and
instead calling rte_free.
Signed-off-by: Hrvoje Habjanic <redacted>
Fixes: ce7c4fd7c2ac ("sched: add pipe config to subport level")
Acked-by: Stephen Hemminger <stephen@networkplumber.org>