summaryrefslogtreecommitdiff
path: root/err.c
diff options
context:
space:
mode:
Diffstat (limited to 'err.c')
-rw-r--r--err.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/err.c b/err.c
index 4c81c27..3a74595 100644
--- a/err.c
+++ b/err.c
@@ -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;
}