/Memory-Errors

Bad memory management examples and their testing using various tools

Primary LanguageC++

Memory-Errors

Bad memory management examples and their testing using various tools

Usage

Compiling

Include debug information while compiling

  • g++ -g file.cpp
  • gcc -g file.cpp

Note: if needed use static linking -static

Valgrind

  • valgrind --leak-check=full ./program args

Optional: --track-origins=yes, --show-leak-kinds=all

Sources