Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to force valgrind to show only memory leaks?

I'd like to know how to force Valgrind tool to show only memory leaks!

with --leak-check=full or --leak-check=full it shows memory leaks (which is good) but also uninitialization problems and/or conditional jump taking problems

thanks!

like image 716
Gianluca Ghettini Avatar asked Nov 19 '12 11:11

Gianluca Ghettini


1 Answers

You can remove the uninitialized value reads, including the ones for jumps with --undef-value-errors=no. I don't know if you can disable other kinds of errors, such as heap corruption and double free.

like image 58
Laurynas Biveinis Avatar answered Sep 30 '22 15:09

Laurynas Biveinis