fix free static buffer (#162)

This commit is contained in:
Roman Fomin 2021-04-18 15:23:39 +07:00 committed by GitHub
parent c63beef346
commit afee7a5620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);