On Fri, 11 Jul 2025 12:45:55 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:
> The following is reported when building with the gcc static analyzer > (-fanalyzer) : > > > /jdk/src/java.base/unix/native/libjava/java_props_md.c:244:17: warning: leak > of 'temp' [CWE-401] [-Wanalyzer-malloc-leak] > 244 | return 0; > > > Seems we have to free temp in an early return. This pull request has now been integrated. Changeset: bf225c20 Author: Matthias Baesken <mbaes...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/bf225c201f00f3a478b51c3cf045759b66899684 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod 8361959: [GCC static analyzer] java_props_md.c leak of 'temp' variable is reported Reviewed-by: shade, kbarrett, rriggs ------------- PR: https://git.openjdk.org/jdk/pull/26264