mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 18:56:10 +00:00
returned (bytes leaked, dubious, etc) were incremented for every leak check performed. So if you called VALGRIND_DO_LEAK_CHECK twice in a row, the totals would be updated twice by the same amount. This was a bit silly. So now COUNT_LEAKS just returns the numbers of bytes leaked found from the previous leak check. I even updated the docs, and changed the regression test so old version fail but the new version passes (by doing two DO_LEAK_CHECKS in a row). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1778