mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
avcodec/utils: fix minor memory leaks on avcodec_open2() failure
This commit is contained in:
parent
53a9b164c5
commit
27adf9f9cd
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user