From e98574570ec0e355c6cff2b6e30bd992f20fe610 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jan 2021 11:15:53 -0800 Subject: More static analysis cleanup --- utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index 58f8e2d..93de1f4 100644 --- a/utils.c +++ b/utils.c @@ -145,7 +145,7 @@ void *memcheck(void *p) { if (p == NULL) { fprintf(stderr, "memory allocation failure\n"); - exit(1); + exit(EXIT_FAILURE); } return p; } @@ -169,7 +169,7 @@ void xfree(void *p) { if (*(void**)p == NULL) { fprintf(stderr, "Attempt to free(NULL)\n"); - exit(1); + exit(EXIT_FAILURE); } free(*(void**)p); p = NULL; -- cgit v1.2.3