From 303f6c61f9d0bbf1b4f962301c45f9439b5230c3 Mon Sep 17 00:00:00 2001 From: amy Date: Thu, 18 May 2023 09:06:21 +0000 Subject: even more fixes:3 --- src/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index bf99a84..dc62378 100644 --- a/src/util.c +++ b/src/util.c @@ -26,6 +26,8 @@ double binomial(int n, int k){ } void* mmalloc(size_t X,char*file,int line,char*func){ void* mal = (malloc)(X); + if(mal==NULL) + abort(); #ifdef memory_trace if(allocations==NULL){ allocations=(malloc)(sizeof(*allocations)*2); -- cgit v1.2.3