diff options
Diffstat (limited to 'memory.c')
-rw-r--r-- | memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,9 @@ int alloccounts = 0; void freearray(Array *a) { + if(a == nil) + return; + a->refs--; if(a->refs == 0){ /* print("Freeing array: %S (%p)\n", pparray(a), a); */ |