diff options
Diffstat (limited to 'nuttx/sched/env_dup.c')
-rw-r--r-- | nuttx/sched/env_dup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/env_dup.c b/nuttx/sched/env_dup.c index c7a10af48..1b061be8f 100644 --- a/nuttx/sched/env_dup.c +++ b/nuttx/sched/env_dup.c @@ -101,7 +101,7 @@ int env_dup(FAR struct task_group_s *group) /* Yes..The parent task has an environment, duplicate it */ envlen = ptcb->group->tg_envsize; - envp = (FAR char *)kmalloc(envlen); + envp = (FAR char *)kumalloc(envlen); if (!envp) { ret = -ENOMEM; |