diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-15 15:43:14 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-15 15:43:14 +0100 |
commit | 51b193214dea63762d85a46913d70e602888cad0 (patch) | |
tree | e59745253750aeb3e789fbdab5a6bd5fb028d2ec | |
parent | e631872f13b6be0583603d45a11e53319754bc8d (diff) | |
download | ffmpeg-51b193214dea63762d85a46913d70e602888cad0.tar.gz |
avformat/avidec: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/avidec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index a8318ffded..f5f727889a 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1847,12 +1847,12 @@ static int avi_read_close(AVFormatContext *s) av_freep(&ast->sub_ctx->pb); avformat_close_input(&ast->sub_ctx); } - av_free(ast->sub_buffer); + av_freep(&ast->sub_buffer); av_free_packet(&ast->sub_pkt); } } - av_free(avi->dv_demux); + av_freep(&avi->dv_demux); return 0; } |