Integrated: 8375684: Avoid leak in KeystoreImpl.m when using CFArrayCreateMutable
Matthias Baesken
mbaesken at openjdk.org
Mon Jan 26 11:41:39 UTC 2026
On Tue, 20 Jan 2026 16:47:29 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> In KeystoreImpl.m we use CFArrayCreateMutable, but we do not always CFRelease the resources we created.
> This should be adjusted.
>
> See
> https://developer.apple.com/documentation/corefoundation/cfarraycreatemutable(_:_:_:)
>
> return value is
> A new mutable array, or NULL if there was a problem creating the object. Ownership follows the [The Create Rule](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029).
This pull request has now been integrated.
Changeset: 0f1b96a5
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0f1b96a50a3a79fd699bf34121df8451ffa37b8f
Stats: 14 lines in 1 file changed: 10 ins; 1 del; 3 mod
8375684: Avoid leak in KeystoreImpl.m when using CFArrayCreateMutable
Reviewed-by: clanger
-------------
PR: https://git.openjdk.org/jdk/pull/29326
More information about the security-dev
mailing list