diff options
Diffstat (limited to 'nuttx/sched/pthread_create.c')
-rw-r--r-- | nuttx/sched/pthread_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/pthread_create.c b/nuttx/sched/pthread_create.c index ce19941fc..346f51411 100644 --- a/nuttx/sched/pthread_create.c +++ b/nuttx/sched/pthread_create.c @@ -441,7 +441,7 @@ int pthread_create(FAR pthread_t *thread, FAR pthread_attr_t *attr, return ret; errout_with_join: - sched_free(pjoin); + sched_kfree(pjoin); ptcb->joininfo = NULL; errout_with_tcb: |