diff options
Diffstat (limited to 'nuttx/arch/hc/src/common/up_usestack.c')
-rw-r--r-- | nuttx/arch/hc/src/common/up_usestack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/hc/src/common/up_usestack.c b/nuttx/arch/hc/src/common/up_usestack.c index 53a571ed4..f23677be5 100644 --- a/nuttx/arch/hc/src/common/up_usestack.c +++ b/nuttx/arch/hc/src/common/up_usestack.c @@ -87,7 +87,7 @@ int up_use_stack(struct tcb_s *tcb, void *stack, size_t stack_size) if (tcb->stack_alloc_ptr && tcb->adj_stack_size != stack_size) { - sched_free(tcb->stack_alloc_ptr); + sched_ufree(tcb->stack_alloc_ptr); tcb->stack_alloc_ptr = NULL; } |