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

Fix mem-leak in with grandpa protocol #1581

Merged
merged 2 commits into from
Apr 24, 2023
Merged

Fix mem-leak in with grandpa protocol #1581

merged 2 commits into from
Apr 24, 2023

Conversation

xDimon
Copy link
Member

@xDimon xDimon commented Apr 24, 2023

Referenced issues

Not presented

Description of the Change

Remove loopback stream at shutdown

Benefits

No memory leak

Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
@xDimon xDimon marked this pull request as ready for review April 24, 2023 13:46
@xDimon xDimon enabled auto-merge (squash) April 24, 2023 13:48
Copy link
Contributor

@igor-egorov igor-egorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to fix the suggestion - only in case of other requested changes

void StreamEngine::del(const PeerId &peer_id,
const std::shared_ptr<ProtocolBase> &protocol) {
SL_TRACE(logger_,
"Remove {} streams from peer.(peer={})",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Remove {} streams from peer.(peer={})",
"Remove {} streams from peer ({})",

@xDimon xDimon merged commit e96d424 into master Apr 24, 2023
@xDimon xDimon deleted the fix/memleak branch April 24, 2023 15:12
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