From 3b7eb8865398b3367c6eaa92a87042f56302c6c5 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 26 Oct 2014 18:47:12 -0500 Subject: [PATCH] Remove "memory exhausted" error messages Calling code checks for NULL returns anyway, and in the case of allocating chunk compressors there is a fallback so there shouldn't be an error message. --- src/util.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/util.c b/src/util.c index fcfa9628..6e9ae23e 100644 --- a/src/util.c +++ b/src/util.c @@ -413,7 +413,6 @@ retry: size++; goto retry; } - ERROR("memory exhausted"); } return ptr; } @@ -429,10 +428,7 @@ wimlib_realloc(void *ptr, size_t size) { if (size == 0) size = 1; - ptr = (*wimlib_realloc_func)(ptr, size); - if (ptr == NULL) - ERROR("memory exhausted"); - return ptr; + return (*wimlib_realloc_func)(ptr, size); } void * -- 2.43.0