aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rdt.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-12-28 23:23:59 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-12-28 23:23:59 +0000
commitc49a3ec30aaa8042335656982054f02847c03aae (patch)
treec2c6d193ae76170edd4906de2547bbbec518c8ac /libavformat/rdt.c
parent133e5c40265682db10ed42b75a6e179378012f03 (diff)
downloadffmpeg-c49a3ec30aaa8042335656982054f02847c03aae.tar.gz
Fix double free which happens for playback of .rm files after r16365. See
"rmdec.c: double free" discussion on mailinglist, patch with suggestions from Reimar Doffinger. Originally committed as revision 16378 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rdt.c')
-rw-r--r--libavformat/rdt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rdt.c b/libavformat/rdt.c
index a3e468d9ea..6ed1137841 100644
--- a/libavformat/rdt.c
+++ b/libavformat/rdt.c
@@ -438,6 +438,7 @@ static void
rdt_free_extradata (PayloadContext *rdt)
{
ff_rm_free_rmstream(rdt->rmst[0]);
+ av_free(rdt->rmst[0]);
if (rdt->rmctx)
av_close_input_stream(rdt->rmctx);
av_freep(&rdt->mlti_data);