On Mon, 21 Jul 2025 14:12:55 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:
> This is reported by the gcc static analyzer (-fanalyzer); it is just test > coding so not very critical but probably should still be adjusted . > > > /jdk/test/jdk/java/lang/String/nativeEncoding/libstringPlatformChars.c:74:12: > warning: leak of 'str' [CWE-401] [-Wanalyzer-malloc-leak] > 74 | return JNU_NewStringPlatform(env, str); This pull request has now been integrated. Changeset: 5160cfb4 Author: Matthias Baesken <mbaes...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/5160cfb49634cc4a1568c200bc5c17ddbe83c2f7 Stats: 13 lines in 1 file changed: 7 ins; 3 del; 3 mod 8362889: [GCC static analyzer] leak in libstringPlatformChars.c Reviewed-by: rriggs, dholmes ------------- PR: https://git.openjdk.org/jdk/pull/26415