Skip to content

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

Merged
AskAlexSharov merged 4 commits intodevelfrom
pr/mumbai_mem_prof
Oct 14, 2023
Merged

sync: fix a memory leak when header verification fails#8431
AskAlexSharov merged 4 commits intodevelfrom
pr/mumbai_mem_prof

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.

@battlmonstr battlmonstr requested a review from mh0lt October 10, 2023 16:28
@AskAlexSharov AskAlexSharov merged commit 757a91c into devel Oct 14, 2023
@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