GNOME Bugzilla – Bug 322704
oggdemux typefind list leak
Last modified: 2005-12-01 17:02:47 UTC
Please describe the problem: in gstoggdemux.c (gst_ogg_type_find) the return value of gst_type_find_factory_get_list is not free'd. Here's the valgrind log: ==25221== 29228 (12 direct, 29216 indirect) bytes in 1 blocks are definitely lost in loss record 3352 of 3724 ==25221== at 0x1B900B78: calloc (vg_replace_malloc.c:279) ==25221== by 0x1BAAA60D: g_malloc0 (in /usr/lib/libglib-2.0.so.0.900.0) ==25221== by 0x1BAAB16E: g_slice_alloc0 (in /usr/lib/libglib-2.0.so.0.900.0) ==25221== by 0x1BAA1CBE: g_list_prepend (in /usr/lib/libglib-2.0.so.0.900.0) ==25221== by 0x1B933F1A: gst_filter_run (gstfilter.c:73) ==25221== by 0x1B950E89: gst_registry_feature_filter (gstregistry.c:460) ==25221== by 0x1B9510C5: gst_registry_get_feature_list (gstregistry.c:548) ==25221== by 0x1B95F196: gst_type_find_factory_get_list (gsttypefindfactory.c:172) ==25221== by 0x1C1B2CB2: gst_ogg_type_find (gstoggdemux.c:2843) ==25221== by 0x1C1AC5A0: gst_ogg_pad_typefind (gstoggdemux.c:785) ==25221== by 0x1C1ACE67: gst_ogg_pad_submit_packet (gstoggdemux.c:969) ==25221== by 0x1C1AD5E1: gst_ogg_pad_submit_page (gstoggdemux.c:1081) Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 55344 [details] [review] easy fix
Patch applied, Thanks.