[Click] No cleanup?

Eddie Kohler kohler at cs.ucla.edu
Thu Dec 9 11:34:57 EST 2004


Hi guys,

It would be nice to actually delete the Router on exit, even in nsclick. 
  Some cleanup() methods do more than just free memory -- they write out 
any remaining data to logfiles, for example.

Eddie


Michael Neufeld wrote:
> It's been a while, but as I recall that's likely the result of some 
> laziness on my part a couple of years ago. Since the simulated world and 
> its associated process is destroyed when ns-2 finishes, the operating 
> system reclaims its memory, and I seem to remember not bothering to 
> explicitly destroy the Click instance on the way out. It's probably on 
> an old "nsclick todo" list somewhere... If it's causing problems, i.e. 
> you're allocating something which doesn't get cleaned up by the OS on 
> exit or it's masking a memory leak you're trying to track down, you 
> should be able to explicitly destroy the router on exit and do more 
> thorough cleanup.
> 
> -Mike
> 
> Bart Braem wrote:
> 
>> Hello,
>>
>> I'm doing some memory checks and a lot of elements don't seem to free 
>> their memory at the end which is very strange. After some 
>> investigation I discovered cleanup isn't called, in fact the 
>> destructor of Router is never called. Is that normal? I'm using 
>> nsclick so should I look there?
>>
>> Bart
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list