Skip to content

Conversation

@LukaszRozmej
Copy link
Member

@LukaszRozmej LukaszRozmej commented Oct 4, 2025

Changes

  • Change order, add some null guards

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • Refactoring

Testing

Requires testing

  • No

@MarekM25
Copy link
Contributor

MarekM25 commented Oct 4, 2025

Should we check it on @smartprogrammer93 node?

@LukaszRozmej LukaszRozmej marked this pull request as ready for review October 15, 2025 11:57
@LukaszRozmej
Copy link
Member Author

Maybe lets merge it, I don't think it will break anything

@benaadams benaadams requested a review from Copilot October 15, 2025 12:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fix memory/session leak in ProtocolsManager._sessions by reordering cleanup and adding null guards in SessionDisconnected.

  • Remove session from _sessions earlier in the method
  • Add null checks and reorder cleanup for satellite protocols and tx pool peers

@LukaszRozmej LukaszRozmej merged commit 7a98238 into master Oct 15, 2025
141 of 143 checks passed
@LukaszRozmej LukaszRozmej deleted the fix/sessions-leak branch October 15, 2025 21:46
stdevMac pushed a commit that referenced this pull request Oct 29, 2025
* Try fixing leak in ProtocolsManager._sessions

* Additional check for safety

* Avoid double removal
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.

4 participants