mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
avformat/mov: fix memleaks
Fix two cases of memleaks: 1. The leak of dv_demux 2. The leak of dv_fctx upon dv_demux allocate failure Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit f3dc38a186b2326ce03e50969897ea703817ddb0) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
af773c60d6
commit
7db4f36291
@ -4372,10 +4372,9 @@ static int mov_read_close(AVFormatContext *s)
|
||||
av_freep(&sc->display_matrix);
|
||||
}
|
||||
|
||||
if (mov->dv_demux) {
|
||||
avformat_free_context(mov->dv_fctx);
|
||||
mov->dv_fctx = NULL;
|
||||
}
|
||||
av_freep(&mov->dv_demux);
|
||||
avformat_free_context(mov->dv_fctx);
|
||||
mov->dv_fctx = NULL;
|
||||
|
||||
av_freep(&mov->trex_data);
|
||||
av_freep(&mov->bitrates);
|
||||
|
Loading…
x
Reference in New Issue
Block a user