HomePhabricator

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

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.