GNOME Bugzilla – Bug 753188
dashdemux: memory leak in gst_dash_demux_stream_update_fragment_info
Last modified: 2015-08-16 13:39:41 UTC
The gst_dash_demux_stream_update_fragment_info function could call gst_dash_demux_stream_update_headers_info function twice. The gst_dash_demux_stream_update_headers_info function will set header_uri and index_uri to some newly allocated strings. The values set by the first call of gst_dash_demux_stream_update_headers_info will leak when the function is called for a second time. The solution is to call gst_adaptive_demux_stream_fragment_clear before the second call of gst_dash_demux_stream_update_headers_info
Created attachment 308685 [details] [review] proposed patch
commit 93c10d3f0ecd28a7164aea705ae6f623fca5030e Author: Florin Apostol <florin.apostol@oregan.net> Date: Mon Aug 3 16:57:31 2015 +0100 dashdemux: Fix leak in gst_dash_demux_stream_update_fragment_info() The gst_dash_demux_stream_update_fragment_info function could call gst_dash_demux_stream_update_headers_info function twice. The gst_dash_demux_stream_update_headers_info function will set header_uri and index_uri to some newly allocated strings. The values set by the first call of gst_dash_demux_stream_update_headers_info will leak when the function is called for a second time. The solution is to call gst_adaptive_demux_stream_fragment_clear before the second call of gst_dash_demux_stream_update_headers_info https://bugzilla.gnome.org/show_bug.cgi?id=753188