Ensure arena has been allocated before attempting to free
This commit is contained in:
parent
7aaeb91fe1
commit
9179f9beaa
@ -135,6 +135,9 @@ void wapp_mem_arena_free(Arena **arena) {
|
||||
}
|
||||
|
||||
Arena *arena_ptr = *arena;
|
||||
if (!arena_ptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
BaseArena *current;
|
||||
BaseArena *next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user