Fix ef991b17: server was trying to free() a packet created with "new CommandPacket()" (#9334)

This commit is contained in:
Patric Stout
2021-06-03 22:07:44 +02:00
committed by GitHub
parent feb2ddbefa
commit 5e44da3010
2 changed files with 2 additions and 2 deletions

View File

@@ -1758,7 +1758,7 @@ static void NetworkHandleCommandQueue(NetworkClientSocket *cs)
CommandPacket *cp;
while ((cp = cs->outgoing_queue.Pop()) != nullptr) {
cs->SendCommand(cp);
free(cp);
delete cp;
}
}