From: Eric Biggers Date: Sun, 26 Oct 2014 23:47:12 +0000 (-0500) Subject: Remove "memory exhausted" error messages X-Git-Tag: v1.7.3~6 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=3b7eb8865398b3367c6eaa92a87042f56302c6c5 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. --- 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 *