GNOME Bugzilla – Bug 497017
[PATCH] H.264 RTP depayloader leaks memory in setcaps
Last modified: 2007-11-15 17:01:47 UTC
==10975== 78 (36 direct, 42 indirect) bytes in 3 blocks are definitely lost in loss record 6 of 26 ==10975== at 0x4020626: malloc (vg_replace_malloc.c:149) ==10975== by 0x4280E9C: g_malloc (in /targets/OSSO_1.1_X86/usr/lib/libglib-2.0.so.0.1200.12) ==10975== by 0x42943F4: g_strsplit (in /targets/OSSO_1.1_X86/usr/lib/libglib-2.0.so.0.1200.12) ==10975== by 0x6B94B8C: gst_rtp_h264_depay_setcaps (gstrtph264depay.c:238) ==10975== by 0x4A4A5B9: gst_base_rtp_depayload_setcaps (gstbasertpdepayload.c:227) ==10975== by 0x4070C0A: gst_pad_set_caps (gstpad.c:2363) ==10975== by 0x407302E: gst_pad_chain_unchecked (gstpad.c:2417) ==10975== by 0x40738E5: gst_pad_push (gstpad.c:3617) ==10975== by 0x45EA7C9: gst_type_find_element_chain (gsttypefindelement.c:570) ==10975== by 0x407306E: gst_pad_chain_unchecked (gstpad.c:3451) ==10975== by 0x40738E5: gst_pad_push (gstpad.c:3617) ==10975== by 0x405F109: gst_proxy_pad_do_chain (gstghostpad.c:191) The params -array is not freed. Attached patch fixes this.
Created attachment 99135 [details] [review] Patch that fixes small memory leak in gstrtph264depay.c
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_setcaps): Fix small leak. Fixes #497017.