On Fri, 20 Nov 2026 13:05:25 GMT, Matthias Baesken <[email protected]> wrote:

> We miss a couple of CFRelease calls in 
> Java_apple_security_KeychainStore__1addItemToKeychain in case of early 
> errors/returns.
> Also a NULL  check after CFDataCreate is recommended.
> See 
> https://developer.apple.com/documentation/corefoundation/cfdatacreate(_:_:_:) 
>  about return value and ownership/Create rule.
> 
> ---------
> - [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: 98dd001c
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/98dd001c88c669d21c040b4f959c43b1350ec95f
Stats:     38 lines in 1 file changed: 19 ins; 18 del; 1 mod

8397903: Java_apple_security_KeychainStore__1addItemToKeychain add CFRelease to 
early errOut jumps

Reviewed-by: weijun, clanger

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

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

Reply via email to