Skip to content

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

Open
ishitatsuyuki wants to merge 1 commit into
ValveSoftware:proton_8.0from
ishitatsuyuki:patch-1
Open

ntdll: Don't leak objattr allocation in NtCreateSemaphore.#219
ishitatsuyuki wants to merge 1 commit into
ValveSoftware:proton_8.0from
ishitatsuyuki:patch-1

Conversation

@ishitatsuyuki

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@gofman

gofman commented Feb 20, 2024

Copy link
Copy Markdown
Contributor

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