mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
avformat/mxfdec: cleanup if parsing the header metadata fails
Fixes memleaks Fixes: asan_static-oob_87d116_10_201.mxf Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0834f2056c
commit
676110e6d4
@ -2294,7 +2294,8 @@ static int mxf_read_header(AVFormatContext *s)
|
||||
}
|
||||
if (res < 0) {
|
||||
av_log(s, AV_LOG_ERROR, "error reading header metadata\n");
|
||||
return res;
|
||||
ret = res;
|
||||
goto fail;
|
||||
}
|
||||
break;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user