[FFmpeg-cvslog] avformat/flvdec: properly free mt_extradata

Timo Rothenpieler git at videolan.org
Tue Jan 7 20:22:47 EET 2025


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Tue Jan  7 19:07:43 2025 +0100| [9201f872b1c4a6a73510d48c43960f6a2a62a4fe] | committer: Timo Rothenpieler

avformat/flvdec: properly free mt_extradata

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9201f872b1c4a6a73510d48c43960f6a2a62a4fe
---

 libavformat/flvdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 99df3c8a76..6fdf29a3fe 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -937,6 +937,7 @@ static int flv_read_close(AVFormatContext *s)
         av_freep(&flv->new_extradata[i]);
     for (i = 0; i < flv->mt_extradata_cnt; i++)
         av_freep(&flv->mt_extradata[i]);
+    av_freep(&flv->mt_extradata);
     av_freep(&flv->mt_extradata_sz);
     av_freep(&flv->keyframe_times);
     av_freep(&flv->keyframe_filepositions);



More information about the ffmpeg-cvslog mailing list