This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch revert-8965-g_pidhash in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 3374007352f45ee7f061c7533815911585aa9e15 Author: Xiang Xiao <xiaoxiang781...@gmail.com> AuthorDate: Wed Apr 5 22:02:38 2023 +0800 Revert "Fixed improper access of g_pidhash." This reverts commit 95af4b35cf569079d37b0036b04d145b30fb038c. --- sched/task/task_setup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sched/task/task_setup.c b/sched/task/task_setup.c index 157d0def9d..df0034e0fe 100644 --- a/sched/task/task_setup.c +++ b/sched/task/task_setup.c @@ -83,7 +83,6 @@ static int nxtask_assign_pid(FAR struct tcb_s *tcb) FAR struct tcb_s **pidhash; pid_t next_pid; int hash_ndx; - void *temp; int i; /* NOTE: @@ -161,9 +160,8 @@ retry: /* Release resource for original g_pidhash, using new g_pidhash */ - temp = g_pidhash; + kmm_free(g_pidhash); g_pidhash = pidhash; - kmm_free(temp); /* Let's try every allowable pid again */