From a2acc45c5ed0d71212046e4f765291fbc80b6357 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 24 Jun 2024 00:34:16 +0200 Subject: [PATCH] Tier0: remove extraneous memset in '_recalloc_base' CStdMemAlloc::Realloc already nulls memory, no need to memset it. --- src/tier0/memstd.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tier0/memstd.cpp b/src/tier0/memstd.cpp index 62264735..43b1fe3d 100644 --- a/src/tier0/memstd.cpp +++ b/src/tier0/memstd.cpp @@ -95,9 +95,6 @@ extern "C" const size_t nTotal = nCount * nSize; void* const pMemOut = MemAllocSingleton()->Realloc(pBlock, nTotal); - if (!pBlock) - memset(pMemOut, NULL, nTotal); - return pMemOut; } //-------------------------------------------------------------------------