next up previous contents index
Next: 19. Energy Model in Up: 18.5 Memory Leaks Previous: 18.5.1 OTcl

   
18.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. 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.




2000-08-24