Bugzilla – Attachment #624: fix several possible leaks for bug #711
{
i->second.Cancel ();
}
for (HwmpProtocolMacMap::iterator i = m_interfaces.begin (); i != m_interfaces.end (); i ++)
i->second = 0;
m_proactivePreqTimer.Cancel();
m_preqTimeouts.clear ();
m_lastDataSeqno.clear ();
m_lastHwmpSeqno.clear ();
m_interfaces.clear ();
m_rqueue.clear ();
m_rtable = 0;
void
IeBeaconTiming::ClearTimingElement ()
uint16_t to_delete = 0;
uint16_t i;
for (NeighboursTimingUnitsList::iterator j = m_neighbours.begin (); j != m_neighbours.end (); j++)
to_delete++;
(*j) = 0;
for (i = 0; i < to_delete; i++)
m_neighbours.pop_back ();
m_neighbours.clear ();
uint8_t
IeBeaconTiming::GetInformationSize () const
IePreq::ClearDestinationAddressElements ()
int i;
for (std::vector<Ptr<DestinationAddressUnit> >::iterator j = m_destinations.begin (); j
!= m_destinations.end (); j++)
for (i = 0; i < m_destCount; i++)
m_destinations.pop_back ();
m_destinations.clear ();
m_destCount = 0;
i->second.clear ();
m_neighbourBeacons.clear ();
for (PeerManagementProtocolMacMap::iterator i = m_plugins.begin (); i != m_plugins.end (); i++)
m_plugins.clear ();
bool
#include "ns3/wifi-mac-header.h"
#include "ns3/wifi-information-element-vector.h"
#include <vector>
namespace ns3 {
/**
NS_LOG_FUNCTION (this);
delete m_rxMiddle;
delete m_dcfManager;
for (PluginList::iterator i = m_plugins.begin (); i != m_plugins.end (); i++)
*i = 0;
for (Queues::iterator i = m_queues.begin (); i != m_queues.end (); i++)
//Delete smart pointers:
m_rxMiddle = 0;
m_low = 0;
m_dcfManager = 0;
m_stationManager = 0;
m_phy = 0;
m_queues.clear ();
m_beaconSendEvent.Cancel ();
m_beaconDca = 0;
WifiInformationElementVector::Serialize (Buffer::Iterator start) const
for(std::vector<Ptr<WifiInformationElement> >::const_iterator i = m_elements.begin (); i != m_elements.end (); i ++)
for(IE_VECTOR::const_iterator i = m_elements.begin (); i != m_elements.end (); i ++)
start.WriteU8((*i)->ElementId ());
start.WriteU8 ((*i)->GetInformationSize ());
*this = a;
Add (b);
NetDeviceContainer::~NetDeviceContainer ()
for (std::vector<Ptr<NetDevice> >::iterator i = m_devices.begin (); i != m_devices.end (); i++)
NetDeviceContainer::Iterator
NetDeviceContainer (const NetDeviceContainer &a, const NetDeviceContainer &b);
* Destroy a NetDeviceContainer
*/
~NetDeviceContainer ();
* \brief Get an iterator which refers to the first NetDevice in the
* container.
*
Add (e);
NodeContainer::~NodeContainer ()
for (std::vector<Ptr<Node> >::iterator i = m_nodes.begin (); i != m_nodes.end (); i++)
NodeContainer::Iterator
NodeContainer::Begin (void) const
const NodeContainer &e);
* Destroy a NodeContainer
~NodeContainer ();
* \brief Get an iterator which refers to the first Node in the