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).

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

Commit messages:
 - JDK-8391760

Changes: https://git.openjdk.org/jdk/pull/32689/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32689&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8391760
  Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/32689.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32689/head:pull/32689

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

Reply via email to