From 35b3898ce1e348e9087db7a578a1b1cc06c93274 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Thu, 19 Aug 2021 16:07:00 +0800 Subject: [PATCH] task_spawn: release g_spawn_parmsem and sched_unlock at the ending Change-Id: Ifcb5b9921e82fc495c4457fdb5f0607f40b07fc0 Signed-off-by: Jiuzhu Dong --- sched/task/task_spawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/task/task_spawn.c b/sched/task/task_spawn.c index d5740c1eb7..327bf8c6f0 100644 --- a/sched/task/task_spawn.c +++ b/sched/task/task_spawn.c @@ -437,7 +437,7 @@ int task_spawn(FAR const char *name, main_t entry, goto errout_with_lock; } - return (int)pid; + ret = (int)pid; errout_with_lock: #ifdef CONFIG_SCHED_WAITPID