[Bug 760598] New: gstnetclientclock: memory leak in handling gst_ntp_packet_receive errors

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jan 13 13:32:55 PST 2016


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

            Bug ID: 760598
           Summary: gstnetclientclock: memory leak in handling
                    gst_ntp_packet_receive errors
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: florin.apostol at oregan.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

In function gst_net_client_internal_clock_thread, error message is not released
if gst_ntp_packet_receive returns error:

==20799== 34 (12 direct, 22 indirect) bytes in 1 blocks are definitely lost in
loss record 1,812 of 2,836
==20799==    at 0x402E17C: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==20799==    by 0x42C86B3: g_malloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4400.0)
==20799==    by 0x42DFB7B: g_slice_alloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4400.0)
==20799==    by 0x42ADB37: g_error_new_valist (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4400.0)
==20799==    by 0x42ADE5B: g_set_error (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4400.0)
==20799==    by 0x4B03450: gst_ntp_packet_new (gstntppacket.c:108)
==20799==    by 0x4B03DB1: gst_ntp_packet_receive (gstntppacket.c:298)
==20799==    by 0x4AF4F9B: gst_net_client_internal_clock_thread
(gstnetclientclock.c:714)
==20799==    by 0x42EA409: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.4400.0)
==20799==    by 0x43BA1A9: start_thread (pthread_create.c:333)
==20799==    by 0x44BAFDD: clone (clone.S:122)

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