After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 322704 - oggdemux typefind list leak
oggdemux typefind list leak
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal normal
: 0.9.7
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-28 23:43 UTC by Alessandro Decina
Modified: 2005-12-01 17:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
easy fix (261 bytes, patch)
2005-11-28 23:45 UTC, Alessandro Decina
none Details | Review

Description Alessandro Decina 2005-11-28 23:43:32 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:
Comment 1 Alessandro Decina 2005-11-28 23:45:02 UTC
Created attachment 55344 [details] [review]
easy fix
Comment 2 Julien MOUTTE 2005-11-29 08:27:07 UTC
Patch applied, Thanks.