Source: https://www.isical.ac.in/~pdslab/2015/lectures/Valgrind.pdf