net: sched: call tcf_ct_params_free to free params in tcf_ct_init
authorXin Long <lucien.xin@gmail.com>
Sun, 6 Nov 2022 20:34:16 +0000 (15:34 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Nov 2022 11:15:19 +0000 (12:15 +0100)
commit1913894100ca53205f2d56091cb34b8eba1de217
treece50667eb339356c8828d3ef2804aa3dca2b2b2d
parentf96cba2eb923c025014fe74a50e104b7c5234feb
net: sched: call tcf_ct_params_free to free params in tcf_ct_init

This patch is to make the err path simple by calling tcf_ct_params_free(),
so that it won't cause problems when more members are added into param and
need freeing on the err path.

Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/sched/act_ct.c