GNOME Bugzilla – Bug 529283
[ofa] Unit test leaks tag string
Last modified: 2008-04-21 21:53:09 UTC
Hi, the ofa unit test currently leaks the tag strings: Running suite(s): OFA ==17111== ==17111== 757 bytes in 1 blocks are definitely lost in loss record 3,928 of 3,980 ==17111== at 0x4022AB8: malloc (vg_replace_malloc.c:207) ==17111== by 0x42D171C: g_malloc (gmem.c:131) ==17111== by 0x42E9F08: g_strdup (gstrfuncs.c:92) ==17111== by 0x409C43A: gst_tag_list_get_string (gsttaglist.c:1378) ==17111== by 0x804A81E: bus_handler (ofa.c:53) ==17111== by 0x405F288: gst_bus_source_dispatch (gstbus.c:779) ==17111== by 0x42C9977: g_main_context_dispatch (gmain.c:2009) ==17111== by 0x42CCBCD: g_main_context_iterate (gmain.c:2642) ==17111== by 0x42CCF56: g_main_loop_run (gmain.c:2850) ==17111== by 0x804A6CD: test_ofa_le_1ch (ofa.c:130) ==17111== by 0x402FF5F: srunner_run_all (in /home/slomo/projects/gstreamer/head/gstreamer/libs/gst/check/.libs/libgstcheck-0.10.so.0.16.0) ==17111== by 0x804AB28: main (ofa.c:387) ==17141== Attached patch fixes this.
Created attachment 109654 [details] [review] ofa-check-leak.diff
Created attachment 109655 [details] [review] ofa-check-leak.diff Also don't leak the tag list
2008-04-21 Sebastian Dröge <slomo@circular-chaos.org> * tests/check/elements/ofa.c: (bus_handler): Don't leak the tags string and tag list. Fixes bug #529283.