summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc_chain.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-02-02 10:57:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-02-04 03:10:10 +0100
commitd0d8a9b1384ba3cd465d6ef3439f3979d4518b4b (patch)
tree0bf1a753411626994aabd953653164de6bddc641 /libavformat/rtpenc_chain.c
parentc6347bdf08db4b4893482f3136555d1a84a19347 (diff)
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 <lu_zero@gentoo.org> (cherry picked from commit ce41c51b0c71c87f623914ba0786aef325d818fe)
Diffstat (limited to 'libavformat/rtpenc_chain.c')
-rw-r--r--libavformat/rtpenc_chain.c1
1 files changed, 1 insertions, 0 deletions
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;