From ce41c51b0c71c87f623914ba0786aef325d818fe Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 2 Feb 2011 10:57:26 +0200 Subject: Free AVStream->info in chained muxers This fixes memory leaks in the RTSP muxer and RTP hinting in the mov muxer present since SVN rev 25418. Signed-off-by: Luca Barbato --- libavformat/rtpenc_chain.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/rtpenc_chain.c') diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c index 10d9df2065..19ea98f643 100644 --- a/libavformat/rtpenc_chain.c +++ b/libavformat/rtpenc_chain.c @@ -70,6 +70,7 @@ AVFormatContext *ff_rtp_chain_mux_open(AVFormatContext *s, AVStream *st, url_close_dyn_buf(rtpctx->pb, &ptr); av_free(ptr); } + av_free(rtpctx->streams[0]->info); av_free(rtpctx->streams[0]); av_free(rtpctx); return NULL; -- cgit v1.2.3