diff --git a/code/qcommon/cmd.c b/code/qcommon/cmd.c index ae605f7b..b6b5a83c 100644 --- a/code/qcommon/cmd.c +++ b/code/qcommon/cmd.c @@ -689,9 +689,7 @@ void Cmd_RemoveCommand( const char *cmd_name ) { } if ( !strcmp( cmd_name, cmd->name ) ) { *back = cmd->next; - if (cmd->name) { - Z_Free(cmd->name); - } + Z_Free (cmd->name); Z_Free (cmd); return; }