aboutsummaryrefslogtreecommitdiff
path: root/src/util/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/memory.c')
-rw-r--r--src/util/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/memory.c b/src/util/memory.c
index 9724c81..2c2281c 100644
--- a/src/util/memory.c
+++ b/src/util/memory.c
@@ -9,7 +9,7 @@ void *alloc(void *(*fun)(size_t), size_t size) {
void *result = fun(size);
if (!result) {
perror("Couldn't alloc.");
- exit(1);
+ exit(EXIT_FAILURE);
}
return result;
}
@@ -22,7 +22,7 @@ void *try_realloc(void *ptr, size_t size) {
void *result = pari_realloc(ptr, size);
if (!result) {
perror("Couldn't alloc.");
- exit(1);
+ exit(EXIT_FAILURE);
}
return result;
} \ No newline at end of file