Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jimingham
Copy link

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.

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.
@fredriss fredriss self-requested a review May 5, 2020 01:42
@jimingham
Copy link
Author

@swift-ci please test

@fredriss fredriss merged commit f962f64 into swiftlang:apple/stable/20200108 May 5, 2020
@jimingham jimingham deleted the line-table-leak branch May 5, 2020 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants