Commit 669ff26b authored by Cameron Gutman's avatar Cameron Gutman Committed by Martin Storsjö

avcodec/mfenc: fix double-free on init failure

mfenc sets FF_CODEC_CAP_INIT_CLEANUP, so calling mf_close() on
failure inside mf_init() results in a double-free.
Signed-off-by: 's avatarCameron Gutman <aicommander@gmail.com>
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 431f6260
......@@ -1214,7 +1214,6 @@ static int mf_init(AVCodecContext *avctx)
return 0;
}
}
mf_close(avctx);
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