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

directory_iterator: fix wrong free, add tests #40

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

Gottox
Copy link
Owner

@Gottox Gottox commented Aug 16, 2023

during one of the last refactorings of the heap constructors, there was a bug introduced that caused a free of the wrong pointer. This commit fixes that bug, makes the wrongly freed pointer const to yield compiler warnings on misuse, and adds a test to make sure it doesn't happen again.

during one of the last refactorings of the heap constructors,
there was a bug introduced that caused a free of the wrong
pointer. This commit fixes that bug, makes the wrongly freed
pointer const to yield compiler warnings on misuse, and adds
a test to make sure it doesn't happen again.
@Gottox Gottox force-pushed the fix/directory-iterator-wrong-free branch from 8fbdea7 to f5c879f Compare August 16, 2023 17:09
@Gottox Gottox merged commit 2e8605a into main Aug 16, 2023
9 checks passed
@Gottox Gottox deleted the fix/directory-iterator-wrong-free branch August 17, 2023 06:25
Gottox added a commit that referenced this pull request Aug 17, 2023
directory_iterator: fix wrong free, add tests
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