fix valgrind warning: UdpSocket must manage carefully its Ipv4EndPoint to avoid double deleting it.

This commit is contained in:
Mathieu Lacage committed 2007-05-03 13:11:50 +02:00
1 parent b23a6e2dac
commit 2b1f2aba00
6 files changed
+50 -3

No files matched your search

+6
View File
@@ -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,