[all-commits] [llvm/llvm-project] 18a96f: [lldb/DWARF] Fix a leak in line table construction
Pavel Labath via All-commits
all-commits at lists.llvm.org
Tue Jan 21 05:48:18 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 18a96fd573b134fed7d8ea6b87930e7a059d6c90
https://github.com/llvm/llvm-project/commit/18a96fd573b134fed7d8ea6b87930e7a059d6c90
Author: Pavel Labath <pavel at labath.sk>
Date: 2020-01-21 (Tue, 21 Jan 2020)
Changed paths:
M lldb/include/lldb/Symbol/LineTable.h
M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
M lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
M lldb/source/Symbol/LineTable.cpp
Log Message:
-----------
[lldb/DWARF] Fix a leak in line table construction
We were creating a bunch of LineSequence objects but never deleting
them.
This fixes the leak and changes the code to use std::unique_ptr, to make
it harder to make the same mistake again.
More information about the All-commits
mailing list