[Bug 731780] gstrtpjitterbuffer: free item if it is a duplicated one

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jun 18 09:30:34 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=731780
  GStreamer | gst-plugins-good | 1.3.2

--- Comment #5 from Miguel París Díaz <mparisdiaz at gmail.com> 2014-06-18 16:30:31 UTC ---
The item leaked is created here
http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtpmanager/gstrtpjitterbuffer.c?id=1.3.2#n2800,
which provokes the leak of the item and the event. See the valgrind trace:

==5004== 6,480 (480 direct, 6,000 indirect) bytes in 15 blocks are definitely
lost in loss record 8,550 of 8,597
==5004==    at 0x4C2AB80: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5004==    by 0x53E4610: g_malloc (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==5004==    by 0x53FA22D: g_slice_alloc (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==5004==    by 0x4EBE9B6: gst_structure_new_id_empty_with_size (in
/usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.302.0)
==5004==    by 0x4EC0E4E: gst_structure_new_valist (in
/usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.302.0)
==5004==    by 0x4EC0EF6: gst_structure_new (in
/usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.302.0)
==5004==    by 0xC1EB62E: wait_next_timeout (gstrtpjitterbuffer.c:2792)
==5004==    by 0x5403F14: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==5004==    by 0x659E181: start_thread (pthread_create.c:312)
==5004==    by 0x5BBD30C: clone (clone.S:111)
==5004== 
==5004== 8,400 (1,920 direct, 6,480 indirect) bytes in 30 blocks are definitely
lost in loss record 8,560 of 8,597
==5004==    at 0x4C2AB80: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5004==    by 0x53E4610: g_malloc (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==5004==    by 0x53FA22D: g_slice_alloc (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==5004==    by 0xC1EB648: wait_next_timeout (gstrtpjitterbuffer.c:776)
==5004==    by 0x5403F14: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==5004==    by 0x659E181: start_thread (pthread_create.c:312)
==5004==    by 0x5BBD30C: clone (clone.S:111)

The entry point of this call i wait_next_timeout
(http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtpmanager/gstrtpjitterbuffer.c?id=1.3.2#n2877)

-- 
Configure bugmail: https://bugzilla.gnome.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.


More information about the gstreamer-bugs mailing list