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

[GCC static analyzer] memory leak in ps_core.c core_handle_note

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25, 26
    • hotspot
    • None
    • generic
    • linux

      The GCC static analyzer (-fanalyzer) reports this issue on Linux :

      src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c:289:11: warning: leak of 'p' [CWE-401] [-Wanalyzer-malloc-leak]
        289 | return false;

      Seems a buffer 'buf' is not freed in an early return.

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

              Created:
              Updated: