diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-27 06:42:09 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-03 15:05:44 +0300 |
commit | cb255b616cf1ebc6bc89b3538b6b7465dc2c526b (patch) | |
tree | 05af1a64c51f7f8fa01891887471ee225f071d26 | |
parent | 0aed3002ad3104489d0e378dc9893271d14e0e5b (diff) |
avformat/matroskaenc: Fix memleak upon encountering bogus chapter
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r-- | libavformat/matroskaenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index cccfdb41b6..36b29e2d8d 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1463,6 +1463,7 @@ static int mkv_write_chapters(AVFormatContext *s) av_log(s, AV_LOG_ERROR, "Invalid chapter start (%"PRId64") or end (%"PRId64").\n", chapterstart, chapterend); + ffio_free_dyn_buf(&dyn_cp); return AVERROR_INVALIDDATA; } |