about summary refs log tree commit diff stats
path: root/src/elfs
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-04-22 10:12:09 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-04-22 10:12:09 +0200
commitc74d8bb6028ec1d16aef04f7ae4cbc6bca34a044 (patch)
treee232c29f770a0506251360d671f387b37f40abba /src/elfs
parentec7844072f5ad5a74de9f4a42c91aefc2f174691 (diff)
downloadbox64-c74d8bb6028ec1d16aef04f7ae4cbc6bca34a044.tar.gz
box64-c74d8bb6028ec1d16aef04f7ae4cbc6bca34a044.zip
Fixed and improved __cxa_atexit handling
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]);
         }