fix valgrind warning: UdpSocket must manage carefully its Ipv4EndPoint to avoid double deleting it.
This commit is contained in:
1 parent
b23a6e2dac
commit
2b1f2aba00
6 files changed
+50
-3
No files matched your search
@@ -54,6 +54,8 @@ public:
|
||||
Ipv4EndPoint *Allocate (Ipv4Address localAddress, uint16_t localPort,
|
||||
Ipv4Address peerAddress, uint16_t peerPort);
|
||||
|
||||
void DeAllocate (Ipv4EndPoint *endPoint);
|
||||
|
||||
// called by UdpSocket.
|
||||
void Send (Packet packet,
|
||||
Ipv4Address saddr, Ipv4Address daddr,
|
||||
|
||||
Reference in new issue
Block a user