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

Fix ASAN warnings due to (inconsequential) memory leaks in the main loop #359

Merged
merged 4 commits into from
Dec 11, 2023

Conversation

rdw-software
Copy link
Member

The primary benefit to doing this in the first place is to eliminate the warnings in preparation for running sanitizers in the CI.

The entire shutdown sequence needs a bit of a rework, but it can wait.
These don't really matter as the app will shut down, but it's still noise.
@rdw-software rdw-software linked an issue Dec 11, 2023 that may be closed by this pull request
I originally found new/delete to be more idiomatic, although it really  doesn't matter in this case. Removing two lines is still a win, I guess?
It's an oversight; the handles are from uws and already dealt with.
@rdw-software rdw-software force-pushed the 356-shutdown-memory-leaks branch from ad35e81 to db1003e Compare December 11, 2023 20:44
@rdw-software rdw-software merged commit e5181e1 into main Dec 11, 2023
6 checks passed
@rdw-software rdw-software deleted the 356-shutdown-memory-leaks branch December 12, 2023 02:30
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.

ASAN detects memory leaks while running the main loop
1 participant