diff --git a/XUtils.c b/XUtils.c index b1cd8aa18..aa9cc9e4a 100644 --- a/XUtils.c +++ b/XUtils.c @@ -63,7 +63,7 @@ void* xCalloc(size_t nmemb, size_t size) { void* xRealloc(void* ptr, size_t size) { assert(size > 0); - void* data = size ? realloc(ptr, size) : NULL; // deepcode ignore MemoryLeakOnRealloc: this goes to fail() + void* data = realloc(ptr, size); if (!data) { /* free'ing ptr here causes an indirect memory leak if pointers * are held as part of an potential array referenced in ptr.