Skip to content

Commit

Permalink
Don't try to use free a custom block if init is not done
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Jan 10, 2025
1 parent 1e681ce commit 0d8e02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custommem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0d8e02a

Please sign in to comment.