Commit 7fa9f7ef authored by Michael Niedermayer's avatar Michael Niedermayer

dvdsub_parse_extradata: fix memleak

Fixes CID1135765
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f90281ca
......@@ -599,8 +599,10 @@ static int dvdsub_parse_extradata(AVCodecContext *avctx)
int w, h;
if (sscanf(data + 5, "%dx%d", &w, &h) == 2) {
int ret = ff_set_dimensions(avctx, w, h);
if (ret < 0)
if (ret < 0) {
av_free(dataorig);
return ret;
}
}
}
......
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