about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-01-10 12:10:57 +0100
committerptitSeb <sebastien.chev@gmail.com>2025-01-10 12:10:57 +0100
commit0d8e02a3fe7f3cc20229c722e37a3db226fff470 (patch)
tree54e225d5354ef059f1b146f505b19701d7d26363 /src
parent1e681cead008f5d423e819db7b935c7a131ab170 (diff)
downloadbox64-0d8e02a3fe7f3cc20229c722e37a3db226fff470.tar.gz
box64-0d8e02a3fe7f3cc20229c722e37a3db226fff470.zip
Don't try to use free a custom block if init is not done
Diffstat (limited to 'src')
-rw-r--r--src/custommem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c
index 7f249e00..4b0f0712 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -619,7 +619,7 @@ void* customRealloc32(void* p, size_t size)
 
 void internal_customFree(void* p, int is32bits)
 {
-    if(!p) {
+    if(!p || !inited) {
         return;
     }
     uintptr_t addr = (uintptr_t)p;