valgrind --leak-check=full -v ./your_program
Please note that the -v flag can result in messages like this:
--24101-- REDIR: 0xbb20580 (operator delete(void*)) redirected to 0x93b7d48 (operator delete(void*))
According to Stackoverflow, you shouldn’t be worry. When the flag -v is removed (in my case) the messages disappeared.
Have questions about this? Comments?Let me know! 😀
Page created by G. (George) Samaras (DIT)