diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 7cd14c8e1e..f40a533399 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1135,6 +1135,7 @@ FF_ENABLE_DEPRECATION_WARNINGS av_dict_free(&tmp); av_freep(&avctx->priv_data); + av_freep(&avctx->subtitle_header); if (avctx->internal) { av_frame_free(&avctx->internal->to_free); av_frame_free(&avctx->internal->compat_decode_frame);