[Bug 759522] pnmdec: Fix memory leaks

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Dec 15 20:10:02 PST 2015


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

--- Comment #1 from Vineeth <vineeth.tm at samsung.com> ---
Created attachment 317468
  --> https://bugzilla.gnome.org/attachment.cgi?id=317468&action=edit
fix buffer leak

This handles buffer leak for corrupted files.

==4080== 77,043 (160 direct, 76,883 indirect) bytes in 1 blocks are definitely
lost in loss record 2,285 of 2,286
==4080==    at 0x402C17C: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==4080==    by 0x421CBE2: g_malloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==4080==    by 0x4233281: g_slice_alloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==4080==    by 0x406807B: gst_buffer_new (gstbuffer.c:714)
==4080==    by 0x40691C4: gst_buffer_new_allocate (gstbuffer.c:762)
==4080==    by 0x4161577: gst_pnmdec_parse (gstpnmdec.c:376)
==4080==    by 0x61D1116: gst_video_decoder_parse_available
(gstvideodecoder.c:1005)
==4080==    by 0x61D12C3: gst_video_decoder_chain_forward
(gstvideodecoder.c:2198)
==4080==    by 0x61D351D: gst_video_decoder_chain (gstvideodecoder.c:2494)
==4080==    by 0x40A2BA7: gst_pad_push_data (gstpad.c:4153)
==4080==    by 0x40AB866: gst_pad_push (gstpad.c:4524)
==4080==    by 0x61675A2: gst_base_src_loop (gstbasesrc.c:2845)

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