mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
avformat/mpsubdec: Clear queue on error
Fixes: Memleaks Fixes: 17219/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5720539124989952 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
bf0ba75c4a
commit
9a0d36e562
@ -163,6 +163,9 @@ static int mpsub_read_header(AVFormatContext *s)
|
|||||||
ff_subtitles_queue_finalize(s, &mpsub->q);
|
ff_subtitles_queue_finalize(s, &mpsub->q);
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
if (res < 0)
|
||||||
|
ff_subtitles_queue_clean(&mpsub->q);
|
||||||
|
|
||||||
av_bprint_finalize(&buf, NULL);
|
av_bprint_finalize(&buf, NULL);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user