1
0
Fork 0

Fix #8117: Memory leak in admin port (#8122)

pull/8125/head
glx22 2020-05-07 02:00:53 +02:00 committed by GitHub
parent 86e9326b7f
commit 82573a5e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ NetworkRecvStatus NetworkAdminSocketHandler::ReceivePackets()
Packet *p;
while ((p = this->ReceivePacket()) != nullptr) {
NetworkRecvStatus res = this->HandlePacket(p);
delete p;
if (res != NETWORK_RECV_STATUS_OKAY) return res;
}