Skip to content

Commit

Permalink
Merge pull request #1557 from hjelmn/new_hooks_update
Browse files Browse the repository at this point in the history
memory/patcher: munmap hook could be called from within a malloc() implementation
  • Loading branch information
hjelmn committed Apr 18, 2016
2 parents 95c06cf + a8e90e8 commit 178c97b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opal/mca/memory/patcher/memory_patcher_component.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 178c97b

Please sign in to comment.