diff --git a/libavcodec/utils.c b/libavcodec/utils.c index d3ddcbca9d..2e2283ffea 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1037,6 +1037,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);