Matteo Bruni matteo.mystral@gmail.com writes:
@@ -82,8 +82,7 @@ void *pp_xmalloc(size_t size) res = malloc(size); if(res == NULL) {
fprintf(stderr, "Virtual memory exhausted.\n");
exit(2);
} return res;pp_internal_error(__FILE__, __LINE__, "Virtual memory exhausted.\n");
} @@ -96,8 +95,7 @@ void *pp_xrealloc(void *p, size_t size) res = realloc(p, size); if(res == NULL) {
fprintf(stderr, "Virtual memory exhausted.\n");
exit(2);
pp_internal_error(__FILE__, __LINE__, "Virtual memory exhausted.\n");
Memory allocation failures are not internal errors.