KindDragon/vld

direct/indirect leaks

Closed this issue · 3 comments

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

How do you define direct and indirect leaks?

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

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