sched: remove useless malloc in PIE data init
authorWeiguo Li <liwg06@foxmail.com>
Tue, 1 Mar 2022 20:32:57 +0000 (04:32 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 7 Mar 2022 18:34:24 +0000 (19:34 +0100)
commit79aab97c94024c4f969308ec806efb168cccc83d
treec85bccee5f2007722b3bf4dcdde2571248ed8014
parent4e3582ab5b49aeace3949ea4b9c6b0fddf5097a5
sched: remove useless malloc in PIE data init

'rte_pie_rt_data_init(NULL)' is not expected, and it's ought to
fail when this happen. The malloc inside the function didn't work.
So remove the malloc otherwise will lead to a memory leak.

Fixes: 44c730b0e37971 ("sched: add PIE based congestion management")
Cc: stable@dpdk.org
Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/sched/rte_pie.c