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

ntdll: Don't leak objattr allocation in NtCreateSemaphore. #219

Open
wants to merge 1 commit into
base: proton_8.0
Choose a base branch
from

Conversation

ishitatsuyuki
Copy link
Contributor

fsync/esync_create_semaphore allocates objattr on their own, and objattr allocated in NtCreateSemaphore was getting leaked.

Like NtCreateEvent, move the objattr allocation after fsync/esync early return to avoid double allocation.

fsync/esync_create_semaphore allocates objattr on their own, and objattr allocated in NtCreateSemaphore was getting leaked.

Like NtCreateEvent, move the objattr allocation after fsync/esync early return to avoid double allocation.
@ishitatsuyuki
Copy link
Contributor Author

@gofman or @zfigura, would you mind taking a look when you have time?

@gofman
Copy link
Contributor

gofman commented Feb 20, 2024

Thanks! Pushed to Experimental branch.

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.

2 participants