Skip to content

Improve memory safety in DartsDict#1382

Merged
frankslin merged 2 commits into
BYVoid:masterfrom
frankslin:fix-dartsdict-mem-leak
Jul 1, 2026
Merged

Improve memory safety in DartsDict#1382
frankslin merged 2 commits into
BYVoid:masterfrom
frankslin:fix-dartsdict-mem-leak

Conversation

@frankslin

Copy link
Copy Markdown
Collaborator

Use std::unique_ptr and std::vector to manage dynamically allocated buffers in DartsDict, preventing potential memory leaks when exceptions are thrown during dictionary loading.

frankslin and others added 2 commits July 1, 2026 10:37
Use std::unique_ptr and std::vector to manage dynamically allocated
buffers in DartsDict, preventing potential memory leaks when exceptions
are thrown during dictionary loading.
Added comments to clarify the detection of 32-bit vs 64-bit unit size in the DartsDict.cpp file, which was accidentally removed
@frankslin frankslin merged commit 0db97a2 into BYVoid:master Jul 1, 2026
33 checks passed
@frankslin frankslin deleted the fix-dartsdict-mem-leak branch July 1, 2026 19:03
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.

1 participant