next up previous contents index
Next: 25. Mathematical Support Up: 24.5 Memory Leaks Previous: 24.5.1 OTcl   Contents   Index


24.5.2 C/C++

Another source of memory leak is in C/C++. This is much easier to track given tools that are specifically designed for this task, e.g., dmalloc and purify. ns has a special target ns-pure to build purified ns executable. First make sure that the macro PURIFY in the ns Makefile contains the right -collector for your linker (check purify man page if you don't know what this is). Then simply type make ns-pure. See earlier sections in this chapter on how to use ns with libdmalloc.



2008-10-11