diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-11 15:56:04 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-11 15:56:04 -0600 |
commit | c0e2f523bda5849e2a176a745aba23e99940f1a6 (patch) | |
tree | 78c1d372cd8a442997953465d0d4de13d4bc16df /nuttx/libc | |
parent | 11bc92f16c7bcee581e2321c36680e1a99dc2e2b (diff) | |
download | px4-nuttx-c0e2f523bda5849e2a176a745aba23e99940f1a6.tar.gz px4-nuttx-c0e2f523bda5849e2a176a745aba23e99940f1a6.tar.bz2 px4-nuttx-c0e2f523bda5849e2a176a745aba23e99940f1a6.zip |
Fix a couple more places where the wrong allocator is being used
Diffstat (limited to 'nuttx/libc')
-rw-r--r-- | nuttx/libc/misc/lib_stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/libc/misc/lib_stream.c b/nuttx/libc/misc/lib_stream.c index f15215723..2ad3cd740 100644 --- a/nuttx/libc/misc/lib_stream.c +++ b/nuttx/libc/misc/lib_stream.c @@ -162,14 +162,14 @@ void lib_stream_release(FAR struct task_group_s *group) if (list->sl_streams[i].fs_bufstart) { -#ifndef CONFIG_ARCH_ADDRENV +#ifndef CONFIG_BUILD_KERNEL /* Release memory from the user heap */ sched_ufree(list->sl_streams[i].fs_bufstart); #else /* If the exiting group is unprivileged, then it has an address * environment. Don't bother to release the memory in this case... - * There is no point sense the memory lies in the user heap which + * There is no point since the memory lies in the user heap which * will be destroyed anyway. But if this is a privileged group, * when we still have to release the memory using the kernel * allocator. @@ -177,7 +177,7 @@ void lib_stream_release(FAR struct task_group_s *group) if ((group->tg_flags & GROUP_FLAG_PRIVILEGED) != 0) { - sched_ufree(list->sl_streams[i].fs_bufstart); + sched_kfree(list->sl_streams[i].fs_bufstart); } #endif } |