[Bug 726814] New: Fix leak of AVBufferRef in gstavvidenc.c

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Mar 21 03:33:54 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=726814
  GStreamer | gst-libav | git

           Summary: Fix leak of AVBufferRef in gstavvidenc.c
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-libav
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: stian.selnes at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Attached is a patch to fix the following leak (using avenc_h263p):

==24185== 64 (24 direct, 40 indirect) bytes in 1 blocks are definitely lost in
loss record 2,201 of 3,197
==24185==    at 0x4C2C930: memalign (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24185==    by 0x4C2CA57: posix_memalign (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24185==    by 0x942C5AD: av_malloc (mem.c:81)
==24185==    by 0x942C6FD: av_mallocz (mem.c:207)
==24185==    by 0x9426143: av_buffer_create (buffer.c:47)
==24185==    by 0x9426483: av_buffer_realloc (buffer.c:158)
==24185==    by 0x9315219: av_new_packet (avpacket.c:71)
==24185==    by 0x9331A7E: ff_MPV_encode_picture (mpegvideo_enc.c:1501)
==24185==    by 0x933FBCC: avcodec_encode_video2 (utils.c:1314)
==24185==    by 0x92E5817: gst_ffmpegvidenc_handle_frame (gstavvidenc.c:584)
==24185==    by 0x579C690: gst_video_encoder_chain (gstvideoencoder.c:1433)
==24185==    by 0x5A3C895: gst_pad_chain_data_unchecked (gstpad.c:3809)
==24185==    by 0x5A3D547: gst_pad_push_data (gstpad.c:4042)
...

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