diff options
Diffstat (limited to 'src/elfs')
| -rw-r--r-- | src/elfs/elfloader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 441595e0..29a247c6 100644 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -385,8 +385,10 @@ void FreeElfMemory(elfheader_t* head) box_free(head->multiblocks); } // we only need to free the overall mmap, no need to free individual part as they are inside the big one - if(head->raw && head->raw_size) + if(head->raw && head->raw_size) { + dynarec_log(LOG_INFO, "Unmap elf memory %p-%p for %s\n", head->raw, head->raw+head->raw_size, head->path); munmap(head->raw, head->raw_size); + } freeProtection((uintptr_t)head->raw, head->raw_size); } |