On Mon, 23 Nov 2026 09:06:17 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).
>
> Matthias Baesken has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Move pw code up

Is it safe to goto the end when some variables (for example, `rawData`) have 
not been initialized? I remember we discussed on this before but I forgot the 
exact answer.

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

PR Comment: https://git.openjdk.org/jdk/pull/33999#issuecomment-7105396787

Reply via email to