Skip to content
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

Use std::unique_ptr<podio::CollectionBase> to save collections in the store and fix leak in the Writer #250

Merged
merged 8 commits into from
Oct 28, 2024

Conversation

jmcarcell
Copy link
Member

@jmcarcell jmcarcell commented Oct 10, 2024

See #249 for the report of the leak.

BEGINRELEASENOTES

  • Use std::unique_ptr<podio::CollectionBase> for the collections in the store instead of std::shared_ptr<podio::CollectionBase>.
  • Fix leak in the Writer that otherwise would have been difficult to fix (without the change above)
  • Clean up FunctionalUtils.h: remove some unused overloads and change some names.

ENDRELEASENOTES

shared_ptr was supposed to be temporary until everything worked, so it was a good time to remove it.

@jmcarcell jmcarcell mentioned this pull request Oct 10, 2024
@jmcarcell jmcarcell changed the title Fix leak in the Writer Use std::unique_ptr<podio::CollectionBase> to save collections in the store and fix leak in the Writer Oct 11, 2024
… store

Also fix a leak in the Writer that without this change would have
been difficult to fix.
@jmcarcell jmcarcell enabled auto-merge (squash) October 28, 2024 07:32
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.

2 participants