From 6ed5b9f6d3fdeeed8ecd43b18bae642ec1ec24b1 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Wed, 9 Feb 2022 01:16:03 +0000 Subject: Add much better memory handling (We now track and free Datum * structs) --- array.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'array.c') diff --git a/array.c b/array.c index bc00a89..a712ad3 100644 --- a/array.c +++ b/array.c @@ -1,5 +1,6 @@ #include #include +#include #include #include "apl9.h" @@ -324,7 +325,7 @@ comparearray(Array *a, Array *b, int checkshapes) break; default: print("Missing comparison code for type %d\n", a->type); - exits(nil); + threadexitsall(nil); } if(sub != 0) return sub; @@ -364,7 +365,7 @@ fillelement(Array *a) } default: print("Can't make fill element of array type %d\n", a->type); - exits(nil); + threadexitsall(nil); return 0; } } -- cgit v1.2.3