1
1

Merge pull request #1557 from hjelmn/new_hooks_update

memory/patcher: munmap hook could be called from within a malloc() implementation
Этот коммит содержится в:
Nathan Hjelm 2016-04-18 17:29:05 -06:00
родитель 95c06cf959 a8e90e8796
Коммит 178c97b406

Просмотреть файл

@ -138,7 +138,8 @@ static int intercept_munmap(void *start, size_t length)
OPAL_PATCHER_BEGIN; OPAL_PATCHER_BEGIN;
int result = 0; 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) { if (!original_munmap) {
result = memory_patcher_syscall(SYS_munmap, start, length); result = memory_patcher_syscall(SYS_munmap, start, length);