ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> | 
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 <[email protected]>

> 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);
 }

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to