From afee7a562026fce7b25ef4475c03f825e3209911 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Sun, 18 Apr 2021 15:23:39 +0700 Subject: [PATCH] fix free static buffer (#162) --- Source/d_main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/d_main.c b/Source/d_main.c index d7f3c45a..54aad189 100644 --- a/Source/d_main.c +++ b/Source/d_main.c @@ -642,10 +642,7 @@ static char *GetAutoloadDir(const char *iwadname) if (autoload_path == NULL) { - char *prefdir; - prefdir = D_DoomPrefDir(); - autoload_path = M_StringJoin(prefdir, DIR_SEPARATOR_S, "autoload", NULL); - (free)(prefdir); + autoload_path = M_StringJoin(D_DoomPrefDir(), DIR_SEPARATOR_S, "autoload", NULL); } M_MakeDirectory(autoload_path);