diff options
author | Chris Johns <chrisj@rtems.org> | 2019-02-14 14:00:05 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-02-15 09:55:16 +1100 |
commit | e309f7769fab9eed69079445a3f7f2354ea993c3 (patch) | |
tree | e35b359d70d487a5f6f2b2af624f9c49ac68c93b /cpukit/libdl/rtl-alloc-heap.c | |
parent | posix: Remove unused _POSIX_Get_object_body() (diff) | |
download | rtems-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.c | 6 |
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; |