about summary refs log tree commit diff stats
path: root/src/elfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/elfs')
-rwxr-xr-xsrc/elfs/elfloader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c
index 8a4078b6..37de9dc2 100755
--- a/src/elfs/elfloader.c
+++ b/src/elfs/elfloader.c
@@ -311,6 +311,7 @@ void FreeElfMemory(elfheader_t* head)
 #ifdef DYNAREC
             dynarec_log(LOG_INFO, "Free DynaBlocks for %s\n", head->path);
             cleanDBFromAddressRange((uintptr_t)head->multiblock[i], head->multiblock_size[i], 1);
+            freeProtection((uintptr_t)head->multiblock[i], head->multiblock_size[i]);
 #endif
             munmap(head->multiblock[i], head->multiblock_size[i]);
         }