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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 25, 26
    • Component/s: hotspot
    • b08
    • 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.

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

              Created:
              Updated:
              Resolved: