[FFmpeg-devel] [PATCH 09/10] avcodec/flac_parser: Don't leave stale pointer in memory

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Sun Oct 6 08:01:19 EEST 2019


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 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);
 }
-- 
2.20.1



More information about the ffmpeg-devel mailing list