[Bug 757453] New: avvidenc: Fix frame memory leak

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun Nov 1 17:00:31 PST 2015


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

            Bug ID: 757453
           Summary: avvidenc: Fix frame memory leak
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-libav
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: vineeth.tm at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

When using sample pipeline
gst-launch-1.0 videotestsrc num-buffers=20 ! video/x-raw,framerate=25/1 !
avenc_mpeg2video ! mxfmux name=mux ! fakesink
found the below memory leak.


==6690== 127,399 (156 direct, 127,243 indirect) bytes in 1 blocks are
definitely lost in loss record 3,033 of 3,034
==6690==    at 0x402C17C: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==6690==    by 0x421BBE2: g_malloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==6690==    by 0x4232281: g_slice_alloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==6690==    by 0x423279C: g_slice_alloc0 (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==6690==    by 0x4CB9E76: gst_video_encoder_chain (gstvideoencoder.c:1338)
==6690==    by 0x40A28C7: gst_pad_push_data (gstpad.c:4104)
==6690==    by 0x40AB446: gst_pad_push (gstpad.c:4475)
==6690==    by 0x656E255: gst_base_transform_chain (gstbasetransform.c:2369)
==6690==    by 0x40A28C7: gst_pad_push_data (gstpad.c:4104)
==6690==    by 0x40AB446: gst_pad_push (gstpad.c:4475)
==6690==    by 0x6566652: gst_base_src_loop (gstbasesrc.c:2845)
==6690==    by 0x40D9888: gst_task_func (gsttask.c:331)



This is happening because, while handling frame, 
if encoder needs more data then it just returns GST_FLOW_OK without unref'ing
the frame.

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