KindDragon / vld

Visual Leak Detector for Visual C++ 2008-2015
https://kinddragon.github.io/vld/
GNU Lesser General Public License v2.1
1.01k stars 316 forks source link

direct/indirect leaks #20

Closed Trass3r closed 8 years ago

Trass3r commented 8 years ago

Does/could vld distinguish between direct and indirect leaks like LeakSanitizer does?

ioannis-e commented 8 years ago

How do you define direct and indirect leaks?

Trass3r commented 8 years ago

Well if A owns a n instance of B (say unique_ptr) and A is leaked B will also indirectly be.

I don't know how exactly they define/implement it though. https://github.com/llvm-mirror/compiler-rt/search?q=kIndirectlyLeaked

KindDragon commented 8 years ago

No, it can't distinguish that leaks. We monitor only allocation, LeakSanitizer/Valgrind monitor all memory