crcox / lens

The Light Efficient Network Simulator (LENS) was originally written by Douglas Rhode, copyright 1998-2004.
3 stars 2 forks source link

Memory leaks #2

Open crcox opened 9 years ago

crcox commented 9 years ago

valgrid --leak-check=full ./Lens will reveal many. Need to add/register ExitProcs.

crcox commented 9 years ago

It turns out that these are generally unproblematic. Most originate from functions in the Tcl/Tk libraries. The ones that don't either are recoverable by the OS, or are trivial. They should still be handled, but they are not a barrier to use.

Valgrind summary:

==6171==    definitely lost: 111 bytes in 3 blocks
==6171==    indirectly lost: 0 bytes in 0 blocks
==6171==      possibly lost: 1,928,208 bytes in 52 blocks
==6171==    still reachable: 373,958 bytes in 1,388 blocks
==6171==         suppressed: 0 bytes in 0 blocks
crcox commented 9 years ago

I'd like to know more before actually closing this. Another set of eyes on the issue would be invaluable.