mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +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_freep(&avctx->priv_data);
|
||||
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_freep(&avctx->internal->pool);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user