Ensure arena has been allocated before attempting to free

This commit is contained in:
Abdelrahman Said 2024-03-24 06:37:02 +00:00
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;