]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/flac_parser: Don't leave stale pointer in memory
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 6 Oct 2019 05:01:19 +0000 (07:01 +0200)
committerPaul B Mahol <onemda@gmail.com>
Mon, 7 Oct 2019 20:53:34 +0000 (22:53 +0200)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/flac_parser.c

index 376ba2bcfc9c68e1c5c49450a0cd4b544d82e990..7ff7683c2e835e25a4d1b2d2f05ebeb0af30877e 100644 (file)
@@ -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);
 }