diff options
Diffstat (limited to 'nuttx/sched/sched_releasetcb.c')
-rw-r--r-- | nuttx/sched/sched_releasetcb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/sched_releasetcb.c b/nuttx/sched/sched_releasetcb.c index d4d59605d..071b0b37e 100644 --- a/nuttx/sched/sched_releasetcb.c +++ b/nuttx/sched/sched_releasetcb.c @@ -142,7 +142,7 @@ int sched_releasetcb(FAR struct tcb_s *tcb) { if (tcb->dspace->crefs <= 1) { - sched_free(tcb->dspace); + sched_kfree(tcb->dspace); } else { @@ -162,7 +162,7 @@ int sched_releasetcb(FAR struct tcb_s *tcb) FAR struct task_tcb_s *ttcb = (FAR struct task_tcb_s *)tcb; for (i = 1; i < CONFIG_MAX_TASK_ARGS+1 && ttcb->argv[i]; i++) { - sched_free((FAR void*)ttcb->argv[i]); + sched_kfree((FAR void*)ttcb->argv[i]); } } @@ -179,7 +179,7 @@ int sched_releasetcb(FAR struct tcb_s *tcb) #endif /* And, finally, release the TCB itself */ - sched_free(tcb); + sched_kfree(tcb); } return ret; |