Skip to content

fix(DHT): refactor memory handling of loaded dht state - #3047

Merged
toktok-releaser merged 1 commit into
TokTok:masterfrom
Green-Sky:dht_cleanups
May 24, 2026
Merged

fix(DHT): refactor memory handling of loaded dht state#3047
toktok-releaser merged 1 commit into
TokTok:masterfrom
Green-Sky:dht_cleanups

Conversation

@Green-Sky

@Green-Sky Green-Sky commented May 20, 2026

Copy link
Copy Markdown
Member

Previous code could double-free if more than one dht states per tox-file and a following allocation fails. (it did not set dht->loaded_nodes_list = nullptr after mem_delete())

Also changed/removed dead var references in comments.


This change is Reviewable

@Green-Sky Green-Sky added this to the v0.2.23 milestone May 20, 2026
@github-actions github-actions Bot added the bug Bug fix for the user, not a fix to a build script label May 20, 2026

@JFreegman JFreegman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@JFreegman reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained.

Previous code could double-free if more than one dht states per
tox-file and a following allocation fails.

Also changed/removed dead var references in comments.
@toktok-releaser
toktok-releaser merged commit 6e959f3 into TokTok:master May 24, 2026
157 of 160 checks passed
@Green-Sky
Green-Sky deleted the dht_cleanups branch May 24, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug fix for the user, not a fix to a build script

Development

Successfully merging this pull request may close these issues.

3 participants