Command_Map_f, Command_QueueMap_f: Prevent memory leak on cheat-limited early-return
This commit is contained in:
parent
04697e94f3
commit
9a1212f32e
1 changed files with 2 additions and 0 deletions
|
|
@ -4198,6 +4198,8 @@ static void Command_QueueMap_f(void)
|
|||
if (ischeating && !usingcheats)
|
||||
{
|
||||
CONS_Printf(M_GetText("Cheats must be enabled.\n"));
|
||||
Z_Free(realmapname);
|
||||
Z_Free(mapname);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue