From 8d4c0c8823194c71bb825f2ccd28b912f3791e08 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Fri, 29 Jan 2021 08:54:32 +0800 Subject: [PATCH] lavc/qsvdec: needn't free the string for AV_OPT_TYPE_STRING AVOption The string for AV_OPT_TYPE_STRING AVOption gets freed by av_opt_free() when closing the AVCodecContext Signed-off-by: Haihao Xiang --- libavcodec/qsvdec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 8bce9f2cf0..08370c8a0b 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -754,8 +754,6 @@ static av_cold int qsv_decode_close(AVCodecContext *avctx) { QSVDecContext *s = avctx->priv_data; - av_freep(&s->qsv.load_plugins); - qsv_decode_close_qsvcontext(&s->qsv); qsv_clear_buffers(s);