summaryrefslogtreecommitdiff
path: root/libavcodec/flac_parser.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-10-06 07:01:19 +0200
committerPaul B Mahol <onemda@gmail.com>2019-10-07 22:53:34 +0200
commit5873feac54da8b8e1d6e4ccf4821c2ff09864cd9 (patch)
tree143e3d88ac6dbe9a66b663536a7ed2e4cd3a6a2f /libavcodec/flac_parser.c
parent87b30f8af8c6d2da7364bf595d98c3c5d3485853 (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.c1
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);
}