https://bugs.freedesktop.org/show_bug.cgi?id=95291

            Bug ID: 95291
           Summary: Possible memory leak in pulsecore/core-util.c
           Product: PulseAudio
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

In src/pulsecore/core-util.c, below function 
char *pa_getcwd(void) {
    size_t l = 128;

    for (;;) {
        char *p = pa_xmalloc(l);
        if (getcwd(p, l))
            return p;

        if (errno != ERANGE) {
            return NULL;
        }

        pa_xfree(p);
        l *= 2;
    }
}

If (errno != ERANGE) condition occur, then memory allocated for p will leak.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
pulseaudio-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs

Reply via email to