[Bug 796830] New: webrtcbin: Memory leak when validating SDP

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jul 18 16:23:31 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=796830

            Bug ID: 796830
           Summary: webrtcbin: Memory leak when validating SDP
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: luis at debethencourt.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 373086
  --> https://bugzilla.gnome.org/attachment.cgi?id=373086&action=edit
patch fix

The GError after validating the SDP doesn't get freed.

Found when running a webrtcbin pipeline inside valgrind:
==5764== 176 (32 direct, 144 indirect) bytes in 2 blocks are definitely lost in
loss record 3,017 of 3,165
==5764==    at 0x402E110: malloc (vg_replace_malloc.c:299)
==5764==    by 0x4A84FE8: g_malloc (gmem.c:94)
==5764==    by 0x4AA1B1F: g_slice_alloc (gslice.c:1025)
==5764==    by 0x4A6421B: g_error_new_valist (gerror.c:408)
==5764==    by 0x4A645D3: g_set_error (gerror.c:582)
==5764==    by 0x7A8E4B0: _check_valid_state_for_sdp_change (webrtcsdp.c:88)
==5764==    by 0x7A8E4B0: validate_sdp (webrtcsdp.c:291)
==5764==    by 0x7A867AE: _set_description_task (gstwebrtcbin.c:2293)
==5764==    by 0x7A7E9A9: _execute_op (gstwebrtcbin.c:580)
==5764==    by 0x4A7E90C: g_main_dispatch (gmain.c:3201)
==5764==    by 0x4A7E90C: g_main_context_dispatch (gmain.c:3854)
==5764==    by 0x4A7ECC7: g_main_context_iterate.isra.29 (gmain.c:3927)
==5764==    by 0x4A7EFE1: g_main_loop_run (gmain.c:4123)
==5764==    by 0x7A7EAF9: _gst_pc_thread (gstwebrtcbin.c:531)

-- 
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