On Thu, 3 Sep 2026 15:51:42 GMT, Matthias Baesken <[email protected]> wrote:

> In the libjaas nt.c coding the OpenProcessToken ( 
> https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-openprocesstoken
>  ) function is used.
> But this needs handle close operations ("To close the access token handle 
> returned through the TokenHandle parameter, call CloseHandle.") and they are 
> missing at some code location(s).
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 41f50781
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/41f50781320bf1e03c40817cef3d8bf68ea224f2
Stats:     5 lines in 1 file changed: 1 ins; 0 del; 4 mod

8391760: [windows] libjaas nt.c seems to have some handle leaks

Reviewed-by: mdoerr, djelinski, lucy

-------------

PR: https://git.openjdk.org/jdk/pull/32689

Reply via email to