From a8e90e87965a48689acb73260ae08e23b26197b6 Mon Sep 17 00:00:00 2001 From: Nathan Hjelm Date: Mon, 18 Apr 2016 15:00:07 -0600 Subject: [PATCH] memory/patcher: munmap hook could be called from within a malloc() implementation Signed-off-by: Nathan Hjelm --- opal/mca/memory/patcher/memory_patcher_component.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opal/mca/memory/patcher/memory_patcher_component.c b/opal/mca/memory/patcher/memory_patcher_component.c index 4771554b58..3975de779e 100644 --- a/opal/mca/memory/patcher/memory_patcher_component.c +++ b/opal/mca/memory/patcher/memory_patcher_component.c @@ -138,7 +138,8 @@ static int intercept_munmap(void *start, size_t length) OPAL_PATCHER_BEGIN; int result = 0; - opal_mem_hooks_release_hook (start, length, false); + /* could be in a malloc implementation */ + opal_mem_hooks_release_hook (start, length, true); if (!original_munmap) { result = memory_patcher_syscall(SYS_munmap, start, length);