HomePhabricator

[lldb/DWARF] Fix a leak in line table construction
8ae23e6c5958Unpublished

Authored by labath on Jan 21 2020, 5:42 AM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[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.

(cherry picked from commit 18a96fd573b134fed7d8ea6b87930e7a059d6c90)

Details

Committed
frissMay 5 2020, 8:35 AM
Parents
rGea0dc75aedba: [lldb] Use llvm::stable_sort in Line
Branches
Unknown
Tags
Unknown