Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8362889

[GCC static analyzer] leak in libstringPlatformChars.c

XMLWordPrintable

    • b08
    • generic
    • generic

        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);

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: