fix memory leaks for simple sample code

This commit is contained in:
Mathieu Lacage committed 2007-02-12 19:32:42 +01:00
1 parent c106232f07
commit ac168ae1a6
4 files changed
+27 -3

No files matched your search

+10
View File
@@ -61,6 +61,16 @@ InternetNode::InternetNode (InternetNode const &o)
SetupLoopback ();
}
InternetNode::~InternetNode ()
{
delete m_netDevices;
delete m_l3Demux;
delete m_ipv4L4Demux;
delete m_udp;
delete m_ipv4;
delete m_arp;
}
void
InternetNode::SetupLoopback (void)
{