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
@@ -106,6 +106,12 @@ Udp::Allocate (Ipv4Address localAddress, uint16_t localPort,
|
||||
peerAddress, peerPort);
|
||||
}
|
||||
|
||||
void
|
||||
Udp::DeAllocate (Ipv4EndPoint *endPoint)
|
||||
{
|
||||
m_endPoints->DeAllocate (endPoint);
|
||||
}
|
||||
|
||||
void
|
||||
Udp::Receive(Packet& packet,
|
||||
Ipv4Address const &source,
|
||||
|
||||
Reference in new issue
Block a user