The ns-3 Network Simulator Project

Use valgrind to understand memory leaks using first.cc

Valgrind can be used to detect memory leaks or errors. ns-3 has valgrind support in its waf. Run the first.cc program available at examples/tutorial with valgrind to understand memory leaks or errors. Edit the first.cc by commenting out the line number 71 which destroys the simulator and again run the same program with valgrind to observe memory leaks. Provide screenshots for the outputs in both the scenarios and document your understanding on memory leaks/errors and how valgrind helps to detect them.

valgrind must be installed to complete this task.

Task tags

  • documentation

Students who completed this task

Parth Pratim, sikfeng, Victor Hu, bartekche, FelenAmvrosiy

Task type

  • chrome_reader_mode Documentation / Training
close

2018