Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix memory leak #7672

Merged
merged 2 commits into from
Jul 23, 2019
Merged

Fix memory leak #7672

merged 2 commits into from
Jul 23, 2019

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Jul 22, 2019

Change Description

  • transaction_metadata::start_recover_keys captured a transaction_metadata shared_ptr of itself in a lambda to async_thread_pool. This capture created a cycle in reference counts of shared_ptr for the transaction_metadata causing a memory leak.
  • reset() the shared_ptr after use to prevent captured shared_ptr<transaction_metadata> from keeping the transaction_metadata alive.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@heifner heifner merged commit e319cd9 into develop Jul 23, 2019
@heifner heifner deleted the fix-mem-leak branch July 23, 2019 11:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants