[FFmpeg-cvslog] avcodec/flac_parser: Don't leave stale pointer in memory

Andreas Rheinhardt git at videolan.org
Tue Oct 8 00:03:19 EEST 2019


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sun Oct  6 07:01:19 2019 +0200| [5873feac54da8b8e1d6e4ccf4821c2ff09864cd9] | committer: Paul B Mahol

avcodec/flac_parser: Don't leave stale pointer in memory

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

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

 libavcodec/flac_parser.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c
index 376ba2bcfc..7ff7683c2e 100644
--- a/libavcodec/flac_parser.c
+++ b/libavcodec/flac_parser.c
@@ -734,6 +734,7 @@ static void flac_parse_close(AVCodecParserContext *c)
         av_free(curr);
         curr = temp;
     }
+    fpc->headers = NULL;
     av_fifo_freep(&fpc->fifo_buf);
     av_freep(&fpc->wrap_buf);
 }



More information about the ffmpeg-cvslog mailing list