Skip to content

Commit

Permalink
Fix nesting of free. (vmangos#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
mserajnik authored Apr 30, 2024
1 parent 657d4f5 commit 50b8a58
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mangosd/CliRunnable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ void CliRunnable::operator()()
s_canReadLine = false;
sWorld.QueueCliCommand(new CliCommandHolder(0, SEC_CONSOLE, nullptr, command.c_str(), &utf8print, &commandFinished));
}
free(command_str);
}
#ifndef WIN32
free(command_str);
#endif
}
}

0 comments on commit 50b8a58

Please sign in to comment.