diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-24 03:15:33 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-02 21:36:51 +0200 |
commit | fe8ae687389fdbd3ec91b2d2d25ce7e6ad846f39 (patch) | |
tree | 2dee73c0695237eb33c7d5867948e4560d842091 | |
parent | 3f851a77194a0f705af9abcc61c66fe31e919cee (diff) | |
download | ffmpeg-fe8ae687389fdbd3ec91b2d2d25ce7e6ad846f39.tar.gz |
avformat/jacosubdec: Fix leak on error
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 4f11685e4c882c0dad3c946c6314def140de3205)
-rw-r--r-- | libavformat/jacosubdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/jacosubdec.c b/libavformat/jacosubdec.c index 0576784da4..9c6640eef8 100644 --- a/libavformat/jacosubdec.c +++ b/libavformat/jacosubdec.c @@ -199,6 +199,7 @@ static int jacosub_read_header(AVFormatContext *s) sub = ff_subtitles_queue_insert(&jacosub->q, line, len, merge_line); if (!sub) { + av_bprint_finalize(&header, NULL); ret = AVERROR(ENOMEM); goto fail; } |