[Lldb-commits] [lldb] [lldb][test] Free buffers in demangling tests to avoid leaks (PR #142676)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 3 15:18:54 PDT 2025
https://github.com/JDevlieghere approved this pull request.
LGTM. Maybe an opportunity to use a unique_ptr with a custom deleter? Something like:
```
struct TrackingOutputBufferDeleter {
void operator()(TrackingOutputBuffer* TOB) {
if (!TOB)
return;
std::free(TOB->getBuffer());
std::free(TOB);
}
};
```
https://github.com/llvm/llvm-project/pull/142676
More information about the lldb-commits
mailing list