summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-alloc-heap.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-02-14 14:00:05 +1100
committerChris Johns <chrisj@rtems.org>2019-02-15 09:55:16 +1100
commite309f7769fab9eed69079445a3f7f2354ea993c3 (patch)
treee35b359d70d487a5f6f2b2af624f9c49ac68c93b /cpukit/libdl/rtl-alloc-heap.c
parentposix: Remove unused _POSIX_Get_object_body() (diff)
downloadrtems-e309f7769fab9eed69079445a3f7f2354ea993c3.tar.bz2
libdl: Allocator does not unlock and lock memory on loading.
Close #3692
Diffstat (limited to 'cpukit/libdl/rtl-alloc-heap.c')
-rw-r--r--cpukit/libdl/rtl-alloc-heap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libdl/rtl-alloc-heap.c b/cpukit/libdl/rtl-alloc-heap.c
index 2483e89fed..4ffdaf23b1 100644
--- a/cpukit/libdl/rtl-alloc-heap.c
+++ b/cpukit/libdl/rtl-alloc-heap.c
@@ -18,14 +18,14 @@
#include "rtl-alloc-heap.h"
void
-rtems_rtl_alloc_heap (bool allocate,
+rtems_rtl_alloc_heap (rtems_rtl_alloc_cmd cmd,
rtems_rtl_alloc_tag tag,
void** address,
size_t size)
{
- if (allocate)
+ if (cmd == RTEMS_RTL_ALLOC_NEW)
*address = malloc (size);
- else
+ else if (cmd == RTEMS_RTL_ALLOC_DEL)
{
free (*address);
*address = NULL;