mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix some memory leaks on packet sending.
This commit is contained in:
parent
5a5854ea9d
commit
009149a073
4 changed files with 13 additions and 12 deletions
|
@ -2010,6 +2010,8 @@ struct TestConnection: public TestBase
|
|||
<< std::endl;
|
||||
|
||||
UASSERT(memcmp(*sentdata, *recvdata, recvdata.getSize()) == 0);
|
||||
|
||||
delete pkt;
|
||||
}
|
||||
|
||||
u16 peer_id_client = 2;
|
||||
|
@ -2074,6 +2076,8 @@ struct TestConnection: public TestBase
|
|||
|
||||
UASSERT(memcmp(*sentdata, *recvdata, recvdata.getSize()) == 0);
|
||||
UASSERT(peer_id == PEER_ID_SERVER);
|
||||
|
||||
delete pkt;
|
||||
}
|
||||
|
||||
// Check peer handlers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue