summaryrefslogtreecommitdiff
path: root/nuttx/arch/rgmp/src/nuttx.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/rgmp/src/nuttx.c')
-rw-r--r--nuttx/arch/rgmp/src/nuttx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/rgmp/src/nuttx.c b/nuttx/arch/rgmp/src/nuttx.c
index 6cb300f82..63e925b8c 100644
--- a/nuttx/arch/rgmp/src/nuttx.c
+++ b/nuttx/arch/rgmp/src/nuttx.c
@@ -161,7 +161,7 @@ int up_use_stack(struct tcb_s *tcb, void *stack, size_t stack_size)
void up_release_stack(struct tcb_s *dtcb)
{
if (dtcb->stack_alloc_ptr) {
- free(dtcb->stack_alloc_ptr);
+ kfree(dtcb->stack_alloc_ptr);
}
dtcb->stack_alloc_ptr = NULL;