Commit 676110e6 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0834f205
...@@ -2294,7 +2294,8 @@ static int mxf_read_header(AVFormatContext *s) ...@@ -2294,7 +2294,8 @@ static int mxf_read_header(AVFormatContext *s)
} }
if (res < 0) { if (res < 0) {
av_log(s, AV_LOG_ERROR, "error reading header metadata\n"); av_log(s, AV_LOG_ERROR, "error reading header metadata\n");
return res; ret = res;
goto fail;
} }
break; break;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment