[llvm] [LLVM][DWARF] Fix for memory leak (PR #81828)
Felipe de Azevedo Piovezan via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 08:38:13 PST 2024
================
@@ -251,7 +251,10 @@ class Dwarf5AccelTableWriter : public AccelTableWriter {
const DWARF5AccelTableData &)>
getIndexForEntry,
bool IsSplitDwarf);
-
+ ~Dwarf5AccelTableWriter() {
+ for (DebugNamesAbbrev *Abbrev : AbbreviationsVector)
+ Abbrev->~DebugNamesAbbrev();
+ }
----------------
felipepiovezan wrote:
Can we just remove the allocator instead and use plain old unique pointers?
https://github.com/llvm/llvm-project/pull/81828
More information about the llvm-commits
mailing list