7 ms·
> Every manual resource deallocation call is a potential bug. This is confirmed by the number of memory leaks as reported by Valgrind. There are more than 1000
by milansuk 9y ago
> Every manual resource deallocation call is a potential bug. This is confirmed by the number of memory leaks as reported by Valgrind. There are more than 1000 of them, several dozen of which are marked as "definitely lost".
You can't compare performance If one program doesn't free memory, which obviously "saves" time. Valgrind can tell you where non-freed heap blocks have been allocated and a fix should not be complicated.
- mcguire 9y ago"Valgrind can tell you where non-freed heap blocks have been allocated and a fix should not be complicated." In theory, theory and practice are the same. In practice, they aren't.