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 leak in test and double free in corner case #9264

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

revans2
Copy link
Collaborator

@revans2 revans2 commented Sep 19, 2023

This fixes #9261

assuming that the fix from #9257 also goes in.

The leak was in a test and I added a withResource and AutoCloseable for an iterator to make it work.

The double free was in a really rare corner case where we are already going to throw an exception that would bring down the task, so it is not too critical. It is not really a use after free in this case. It is a little bit ugly because I had to add in a layer of indirection to make the code work without refactoring a huge chunk of code.

Signed-off-by: Robert (Bobby) Evans <bobby@apache.org>
@revans2
Copy link
Collaborator Author

revans2 commented Sep 19, 2023

build

Copy link
Collaborator

@abellina abellina left a comment

Choose a reason for hiding this comment

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

thanks for fixing this

@sameerz sameerz added the test Only impacts tests label Sep 19, 2023
@revans2 revans2 merged commit 599f8cf into NVIDIA:branch-23.10 Sep 21, 2023
@revans2 revans2 deleted the fix_leaks_double_free branch September 21, 2023 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Only impacts tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Leaks and Double Frees in Unit Tests
3 participants