From b51ca11c395f5e8ec1ca5b2ff22e8b5470ae7e89 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Wed, 20 Jan 2016 05:48:46 +0600 Subject: [PATCH] Fix: double free for pFile --- regamedll/dlls/world.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/regamedll/dlls/world.cpp b/regamedll/dlls/world.cpp index cb224bf6..9008734e 100644 --- a/regamedll/dlls/world.cpp +++ b/regamedll/dlls/world.cpp @@ -465,13 +465,9 @@ void CWorld::__MAKE_VHOOK(Spawn)(void) #endif // REGAMEDLL_FIXES PRECACHE_GENERIC(UTIL_VarArgs("maps/default.txt")); - FREE_FILE(pFile); } - if (pFile != NULL) - { - FREE_FILE(pFile); - } + FREE_FILE(pFile); } }