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

             Bug #: 42942
           Summary: memory leak in pa_threaded_mainloop_free
    Classification: Unclassified
           Product: PulseAudio
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: core
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
                CC: [email protected]


the following program leaks memory according to valgrind; latest git source
build with CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3" ./configure --enable-static 

#include "pulse/pulseaudio.h"
int main() {
    pa_threaded_mainloop *ml = pa_threaded_mainloop_new();
    pa_threaded_mainloop_free(ml);
}

==18066== HEAP SUMMARY:
==18066==     in use at exit: 44 bytes in 2 blocks
==18066==   total heap usage: 12 allocs, 10 frees, 621 bytes allocated
==18066== 
==18066== 4 bytes in 1 blocks are still reachable in loss record 1 of 2
==18066==    at 0x4C28FAC: malloc (vg_replace_malloc.c:236)
==18066==    by 0x437C0B: pa_xmalloc (xmalloc.c:65)
==18066==    by 0x466625: _pa_xnew_internal (xmalloc.h:66)
==18066==    by 0x466FE3: pa_tls_new (thread-posix.c:220)
==18066==    by 0x46679D: current_thread_tls_init (thread-posix.c:66)
==18066==    by 0x453E50: pa_run_once (once.c:91)
==18066==    by 0x4667B9: current_thread_tls_obj (thread-posix.c:66)
==18066==    by 0x466832: current_thread_tls_get (thread-posix.c:66)
==18066==    by 0x466C9F: pa_thread_self (thread-posix.c:144)
==18066==    by 0x4309DC: in_worker (thread-mainloop.c:56)
==18066==    by 0x430C8A: pa_threaded_mainloop_free (thread-mainloop.c:122)
==18066==    by 0x406083: main (pa-test2.cpp:266)
==18066== 
==18066== 40 bytes in 1 blocks are still reachable in loss record 2 of 2
==18066==    at 0x4C279FC: calloc (vg_replace_malloc.c:467)
==18066==    by 0x437CF1: pa_xmalloc0 (xmalloc.c:76)
==18066==    by 0x466675: _pa_xnew0_internal (xmalloc.h:77)
==18066==    by 0x466CBF: pa_thread_self (thread-posix.c:150)
==18066==    by 0x4309DC: in_worker (thread-mainloop.c:56)
==18066==    by 0x430C8A: pa_threaded_mainloop_free (thread-mainloop.c:122)
==18066==    by 0x406083: main (pa-test2.cpp:266)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs

Reply via email to