avformat/jacosubdec: Fix leak on error

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2021-03-24 03:15:33 +01:00
parent 637bdefdeb
commit 4f11685e4c
1 changed files with 1 additions and 0 deletions

View File

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