diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-10-06 07:01:19 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-07 22:53:34 +0200 |
commit | 5873feac54da8b8e1d6e4ccf4821c2ff09864cd9 (patch) | |
tree | 143e3d88ac6dbe9a66b663536a7ed2e4cd3a6a2f /libavcodec/flac_parser.c | |
parent | 87b30f8af8c6d2da7364bf595d98c3c5d3485853 (diff) |
avcodec/flac_parser: Don't leave stale pointer in memory
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/flac_parser.c')
-rw-r--r-- | libavcodec/flac_parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |