[Bug 753339] New: validate: scenario: fix leak during error cases

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Aug 6 20:51:41 PDT 2015


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

            Bug ID: 753339
           Summary: validate: scenario: fix leak during error cases
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-devtools
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: vineeth.tm at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

When message_async is not called during error cases, needs_parsing GList is not
being freed resulting in leak. Hence free'ing the same in finalize.


The leak is as follows

==24920== 2,944 (12 direct, 2,932 indirect) bytes in 1 blocks are definitely
lost in loss record 6,255 of 6,324
==24920==    at 0x402C17C: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==24920==    by 0x43D2BE2: g_malloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==24920==    by 0x43E9281: g_slice_alloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==24920==    by 0x43C93E0: g_list_append (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==24920==    by 0x41F75EC: _fill_action (gst-validate-scenario.c:1231)
==24920==    by 0x41F79BB: _load_scenario_file (gst-validate-scenario.c:2260)
==24920==    by 0x41F8EC6: gst_validate_scenario_factory_create
(gst-validate-scenario.c:2312)
==24920==    by 0x41E7785: gst_validate_pipeline_monitor_new
(gst-validate-pipeline-monitor.c:204)
==24920==    by 0x41F1907: gst_validate_monitor_factory_create
(gst-validate-monitor-factory.c:65)
==24920==    by 0x804A12D: main (gst-validate.c:552)

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