GNOME Bugzilla – Bug 529285
[rganalysis] Unit test leaks a GstTagList
Last modified: 2008-04-21 21:54:04 UTC
Hi, the rganalysis unit test leaks a GstTagList: Running suite(s): rganalysis ==19107== ==19107== 168 (20 direct, 148 indirect) bytes in 1 blocks are definitely lost in loss record 2,358 of 2,454 ==19107== at 0x4022AB8: malloc (vg_replace_malloc.c:207) ==19107== by 0x42D171C: g_malloc (gmem.c:131) ==19107== by 0x42E67FD: g_slice_alloc (gslice.c:824) ==19107== by 0x42E7004: g_slice_alloc0 (gslice.c:833) ==19107== by 0x4099C4A: gst_structure_id_empty_new_with_size (gststructure.c:116) ==19107== by 0x4099CC2: gst_structure_copy (gststructure.c:289) ==19107== by 0x407C444: gst_message_parse_tag (gstmessage.c:871) ==19107== by 0x804A332: poll_tags (rganalysis.c:263) ==19107== by 0x8050896: test_gap_buffers (rganalysis.c:773) ==19107== by 0x402FF5F: srunner_run_all (in /home/slomo/projects/gstreamer/head/gstreamer/libs/gst/check/.libs/libgstcheck-0.10.so.0.16.0) ==19107== by 0x8052238: main (rganalysis.c:1918) Attached patch fixes this.
Created attachment 109656 [details] [review] rganalysis-check.diff
2008-04-21 Sebastian Dröge <slomo@circular-chaos.org> * tests/check/elements/rganalysis.c: (GST_START_TEST): Don't leak a tag list. Fixes bug #529285.