Gianluca Ghettini
Gianluca Ghettini

Reputation: 11658

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!

Upvotes: 8

Views: 4561

Answers (1)

Laurynas Biveinis
Laurynas Biveinis

Reputation: 10858

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.

Upvotes: 9

Related Questions