RFR: 8375684: Avoid leak in KeystoreImpl.m when using CFArrayCreateMutable
Matthias Baesken
mbaesken at openjdk.org
Mon Jan 26 11:38:18 UTC 2026
On Fri, 23 Jan 2026 18:41:35 GMT, Weijun Wang <weijun at openjdk.org> wrote:
> > @wangweij , could you please comment on the potential function usages that miss CFRelease ? Should I address the others too in this PR or better in another one ?
>
> Yes, seems all of them should be released. Have you tried `getInstance("KeychainStore")` again and again and see if there is any memory leak?
No , I just looked at the coding (plus used some tool).
Are there e.g. some good jtreg tests I should use to get more info about the leaks ?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29326#issuecomment-3799123427
More information about the security-dev
mailing list