mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Remove unnecessary NULL pointer check in Cmd_RemoveCommand
This commit is contained in:
parent
a82a99f68d
commit
05758d52f4
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue