News for hackers. Stuff that matters.
Re:Comparing C and C++ usage and performance with a real wor... by milansuk on Sunday September 03, 2017 @12:42PM (#15162382)
> 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.

Re:Comparing C and C++ usage and performance with a real wor... by mcguire on Sunday September 03, 2017 @04:14PM (#15163599)
"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.