diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-01-10 12:10:57 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-01-10 12:10:57 +0100 |
| commit | 0d8e02a3fe7f3cc20229c722e37a3db226fff470 (patch) | |
| tree | 54e225d5354ef059f1b146f505b19701d7d26363 /src | |
| parent | 1e681cead008f5d423e819db7b935c7a131ab170 (diff) | |
| download | box64-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.c | 2 |
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; |