On Thu, 5 Nov 2026 14:29:00 GMT, Matthias Baesken <[email protected]> wrote:

> We potentially leak a handle in case of failing malloc.
> 
> Additionally, GetFinalPathNameByHandleW can fail and return 0.  Then we 
> should free a newly allocated buffer.
> 
> ---------
> - [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: c780192b
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/c780192b8f5c7a9536b81dfe6360595505bcb10b
Stats:     13 lines in 1 file changed: 9 ins; 1 del; 3 mod

8396678: Potential handle leak in getFinalPath canonicalize_md.c

Reviewed-by: alanb, iklam

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

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

Reply via email to