sched: fix memory leak on init failure
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Wed, 28 Nov 2018 13:55:55 +0000 (05:55 -0800)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Fri, 21 Dec 2018 23:22:57 +0000 (00:22 +0100)
commit03b7fd7e545f453f1d7c13d11bf8a0b7cd59a943
treebc498bfe4c3a88d90d7f3c323abe6b40bcc740de
parent5d3f72100904b5a2fc6b240e1cc10f1c2dd02267
sched: fix memory leak on init failure

In some case, we may create sched port dynamically,
if err when creating so memory will leak.

Fixes: de3cfa2c9823 ("sched: initial import")
Cc: stable@dpdk.org
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
lib/librte_sched/rte_sched.c