From e449408b5728ce6102f7dabb647b04b428096972 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 7 Oct 2018 05:20:23 +0000 Subject: [PATCH] Fix minor bug where a null pointer was passed into free() unconditionally git-svn-id: https://svn.eduke32.com/eduke32@7003 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/common.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/duke3d/src/common.cpp b/source/duke3d/src/common.cpp index e164bb146..82e1f2415 100644 --- a/source/duke3d/src/common.cpp +++ b/source/duke3d/src/common.cpp @@ -454,10 +454,7 @@ void G_LoadGroups(int32_t autoload) g_defNamePtr = dup_filename(type->defname); if (type->rtsname && g_rtsNamePtr == NULL) - { - free(g_rtsNamePtr); g_rtsNamePtr = dup_filename(type->rtsname); - } } else {