From 094060587591faa5a4ca64e8e08af13b9ee797aa Mon Sep 17 00:00:00 2001 From: wanxiaoqing Date: Thu, 9 Nov 2023 14:36:45 +0800 Subject: [PATCH] fix memory leak cause by qos_ctrl Signed-off-by: wanxiaoqing --- qos_auth/auth_ctl/qos_ctrl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qos_auth/auth_ctl/qos_ctrl.c b/qos_auth/auth_ctl/qos_ctrl.c index 920f90f..75256e4 100644 --- a/qos_auth/auth_ctl/qos_ctrl.c +++ b/qos_auth/auth_ctl/qos_ctrl.c @@ -420,6 +420,7 @@ void sched_exit_qos_list(struct task_struct *p) --auth->num[qts->in_qos]; list_del_init(&qts->qos_list); qts->in_qos = NO_QOS; + put_task_struct(p); mutex_unlock(&auth->mutex); out_put_auth: -- Gitee