Commit 27adf9f9 authored by wm4's avatar wm4

avcodec/utils: fix minor memory leaks on avcodec_open2() failure

parent 53a9b164
...@@ -1670,6 +1670,8 @@ FF_ENABLE_DEPRECATION_WARNINGS ...@@ -1670,6 +1670,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
av_dict_free(&tmp); av_dict_free(&tmp);
av_freep(&avctx->priv_data); av_freep(&avctx->priv_data);
if (avctx->internal) { if (avctx->internal) {
av_packet_free(&avctx->internal->buffer_pkt);
av_frame_free(&avctx->internal->buffer_frame);
av_frame_free(&avctx->internal->to_free); av_frame_free(&avctx->internal->to_free);
av_freep(&avctx->internal->pool); av_freep(&avctx->internal->pool);
} }
......
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