> 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.

Matthias Baesken has updated the pull request incrementally with one additional 
commit since the last revision:

  free before another early return

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26264/files
  - new: https://git.openjdk.org/jdk/pull/26264/files/f6ab84a9..d5735df9

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26264&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26264&range=00-01

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/26264.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26264/head:pull/26264

PR: https://git.openjdk.org/jdk/pull/26264

Reply via email to