[Bug 762843] New: gstinfo: Refactor code to remove memory leak and FIXME.
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Feb 29 01:51:14 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=762843
Bug ID: 762843
Summary: gstinfo: Refactor code to remove memory leak and
FIXME.
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gstreamer (core)
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: vineeth.tm at samsung.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
In gst_debug_add_log_function, we are leaking old list.
Refactor code a bit to fix the memory leak.
This memory leak can be found when running gsttracerrecord or gstinfo tests
using valgrind
==8192== 16 (8 direct, 8 indirect) bytes in 1 blocks are definitely lost in
loss record 706 of 1,487
==8192== at 0x402C17C: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==8192== by 0x423FBE2: g_malloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==8192== by 0x4256281: g_slice_alloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==8192== by 0x425707A: g_slist_prepend (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==8192== by 0x40B8184: gst_debug_add_log_function (gstinfo.c:1188)
==8192== by 0x80498BC: cleanup (gsttracerrecord.c:62)
==8192== by 0x404EF7E: srunner_run_teardown (check_run.c:341)
==8192== by 0x404FF1C: tcase_run_checked_teardown (check_run.c:355)
==8192== by 0x404FF1C: tcase_run_tfun_fork (check_run.c:452)
==8192== by 0x404FF1C: srunner_iterate_tcase_tfuns (check_run.c:222)
==8192== by 0x404FF1C: srunner_run_tcase (check_run.c:362)
==8192== by 0x404FF1C: srunner_iterate_suites (check_run.c:195)
==8192== by 0x404FF1C: srunner_run (check_run.c:706)
==8192== by 0x404FFB2: srunner_run_all (check_run.c:674)
==8192== by 0x4042BD7: gst_check_run_suite (gstcheck.c:824)
==8192== by 0x8048F14: main (gsttracerrecord.c:169)
--
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