View | Details | Raw Unified | Return to bug 1173
Collapse All | Expand All

(-)a/src/click/model/ipv4-click-routing.cc (-1 / +9 lines)
 Lines 115-120    Link Here 
115
Ipv4ClickRouting::DoDispose ()
115
Ipv4ClickRouting::DoDispose ()
116
{
116
{
117
  m_ipv4 = 0;
117
  m_ipv4 = 0;
118
  simclick_click_kill (m_simNode);
118
  delete m_simNode;
119
  delete m_simNode;
119
  Ipv4RoutingProtocol::DoDispose ();
120
  Ipv4RoutingProtocol::DoDispose ();
120
}
121
}
 Lines 369-375    Link Here 
369
std::string
370
std::string
370
Ipv4ClickRouting::ReadHandler (std::string elementName, std::string handlerName)
371
Ipv4ClickRouting::ReadHandler (std::string elementName, std::string handlerName)
371
{
372
{
372
  std::string s = simclick_click_read_handler (m_simNode, elementName.c_str (), handlerName.c_str (), 0, 0);
373
  char *handle = simclick_click_read_handler (m_simNode, elementName.c_str (), handlerName.c_str (), 0, 0);
374
  std::string ret (handle);
375
  
376
  // This is required because Click does not free
377
  // the memory allocated to the return string
378
  // from simclick_click_read_handler()
379
  delete handle;
380
373
  return s;
381
  return s;
374
}
382
}
375
383

Return to bug 1173