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

sync: fix a memory leak when header verification fails #8431

Merged
merged 4 commits into from
Oct 14, 2023

Conversation

battlmonstr
Copy link
Contributor

If HeaderDownload.VerifyHeader always returns false, the memory usage grows at a fast pace
due to Link objects (containing headers) not deallocated even after the link queue pruning.

@AskAlexSharov AskAlexSharov merged commit 757a91c into devel Oct 14, 2023
4 checks passed
@AskAlexSharov AskAlexSharov deleted the pr/mumbai_mem_prof branch October 14, 2023 01:39
wmitsuda pushed a commit that referenced this pull request Oct 17, 2023
If HeaderDownload.VerifyHeader always returns false, the memory usage
grows at a fast pace
due to Link objects (containing headers) not deallocated even after the
link queue pruning.
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