diff options
Diffstat (limited to 'err.c')
-rw-r--r-- | err.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -271,7 +271,7 @@ static void *err_malloc(size_t size) { void *ret = malloc(size); if (!ret) { fprintf(stderr, "Error: Out of memory.\n"); - abort(); + exit(EXIT_FAILURE); } #ifdef MALLOC_FILL @@ -285,7 +285,7 @@ static void *err_calloc(size_t n, size_t size) { void *ret = calloc(n, size); if (!ret) { fprintf(stderr, "Error: Out of memory.\n"); - abort(); + exit(EXIT_FAILURE); } return ret; } @@ -298,7 +298,7 @@ static void *err_realloc(void *data, size_t new_size) { void *ret = realloc(data, new_size); if (!ret) { fprintf(stderr, "Error: Out of memory.\n"); - abort(); + exit(EXIT_FAILURE); } return ret; } |