[Bug 753306] New: h263parser: fix MVC specific data memory leak

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Aug 5 21:08:51 PDT 2015


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

            Bug ID: 753306
           Summary: h263parser: fix MVC specific data memory leak
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: vineeth.tm at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

When i run a specific file using valgrind, the following leak happens.


==20932== 69,420 bytes in 267 blocks are definitely lost in loss record 3,745
of 3,746
==20932==    at 0x402E109: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==20932==    by 0x4251C4A: g_malloc0 (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==20932==    by 0x4251F2A: g_malloc0_n (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==20932==    by 0x7CE6F5C: gst_h264_parse_subset_sps (gsth264parser.c:1699)
==20932==    by 0x7CE7ACB: gst_h264_parser_parse_subset_sps
(gsth264parser.c:1844)
==20932==    by 0x7CAE554: gst_h264_parse_process_nal (gsth264parse.c:720)
==20932==    by 0x7CB3694: gst_h264_parse_handle_frame (gsth264parse.c:1199)
==20932==    by 0x4855F96: gst_base_parse_handle_buffer (gstbaseparse.c:1985)
==20932==    by 0x48567B2: gst_base_parse_scan_frame.isra.13
(gstbaseparse.c:3247)
==20932==    by 0x485BE1E: gst_base_parse_loop (gstbaseparse.c:3326)
==20932==    by 0x4113A58: gst_task_func (gsttask.c:331)
==20932==    by 0x4114BFE: default_func (gsttaskpool.c:68)
==20932==    by 0x4273404: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==20932==    by 0x42729A9: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==20932==    by 0x4317F6F: start_thread (pthread_create.c:312)
==20932==    by 0x4419BED: clone (clone.S:129)




This is because,
while parsing mvc data, the following are being allocated
mvc->view, mvc->level_value. The same are being allocated again 
for destination when copying using, gst_h264_sps_mvc_copy, and the
allocated values for src is not getting freed.
Hence freeing the same after copy.

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