https://github.com/vitalybuka requested changes to this pull request. How hard to tweak lsan to do the same? If you can allocator you can do leak checking almost for free. https://github.com/llvm/llvm-project/pull/213846