Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

memory leak in tmaster fixed #3230

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

dnrusakov
Copy link
Contributor

The memory leak in TMaster was reported by one of the Twitter internal clients.
After running TMaster under Valgrind memory leaks detector, the leak was localized.
This PR aims to fix it.

GetStmgrsRegSummary() now returns a smart pointer (unique_ptr<>). So, as soon as a caller no need the returned result anymore the memory is freed automatically.

Tested this PR locally under Valgrind and don't see the leak anymore.

@thinker0
Copy link
Member

+1

1 similar comment
@xiaoyao1991
Copy link
Member

👍

@nwangtw nwangtw merged commit 378c8ef into apache:master Apr 1, 2019
sreev pushed a commit to sreev/incubator-heron that referenced this pull request Apr 9, 2020
nicknezis pushed a commit that referenced this pull request Sep 14, 2020
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.

4 participants