Cpp, Debugging, Profiling, Programming, Technology.
create a suppression file, run your program with Valgrind and use the --gen-suppressions=all option: valgrind --gen-suppressions=all ./memory_leak Valgrind will generate suppression rules for any detected issues. You can then save these rules to a file and use the --suppressions option to ignore