Skip to content

Bug(leak): new without delete for ThreadStorage - #42

Merged
fior512 merged 1 commit into
mainfrom
fix/threadstorage-leak
Sep 7, 2026
Merged

fior512 merged 1 commit into
mainfrom
fix/threadstorage-leak

Conversation

@fior512

@fior512 fior512 commented Sep 7, 2026

Copy link
Copy Markdown
Owner

ThreadStorage creates on every thread having a monitoring, but new was used without any delete, creating a memory leak.
This PR solves it with unique_ptr instead of new/delete

@fior512 fior512 added the bug Something isn't working label Sep 7, 2026
@fior512 fior512 changed the title Bug(leak): new didn't had delete, fixed with unique_ptr instead Bug(leak): new without delete for ThreadStorage Sep 7, 2026
@fior512 fior512 mentioned this pull request Sep 7, 2026
@fior512
fior512 merged commit 92da7af into main Sep 7, 2026
4 checks passed
@fior512
fior512 deleted the fix/threadstorage-leak branch September 7, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant