diff options
Diffstat (limited to 'nuttx/sched/sem_close.c')
-rw-r--r-- | nuttx/sched/sem_close.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/sem_close.c b/nuttx/sched/sem_close.c index 169fc0448..22f1e0f1d 100644 --- a/nuttx/sched/sem_close.c +++ b/nuttx/sched/sem_close.c @@ -128,7 +128,7 @@ int sem_close(FAR sem_t *sem) if (!psem->nconnect && psem->unlinked) { dq_rem((FAR dq_entry_t*)psem, &g_nsems); - sched_free(psem); + sched_kfree(psem); } ret = OK; } |