summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorXu Guangxin <guangxin.xu@intel.com>2021-01-05 10:43:37 +0800
committerLinjie Fu <linjie.justin.fu@gmail.com>2021-01-23 16:01:12 +0000
commit4c47b41782e9f8f875b1f7a791d53f5cbc933e63 (patch)
tree501c8cd449caeac5f92a2f64d6229331892d4286 /libavcodec
parent7a6666b19de1ee01a8d2f10224a8344e7bc1c074 (diff)
avcodec/qsv_h2645: fix memory leak for plugin load
Signed-off-by: Xu Guangxin <guangxin.xu@intel.com> Signed-off-by: Linjie Fu <linjie.justin.fu@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/qsvdec_h2645.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c
index 02c41883b6..3d6e85230f 100644
--- a/libavcodec/qsvdec_h2645.c
+++ b/libavcodec/qsvdec_h2645.c
@@ -69,6 +69,8 @@ static av_cold int qsv_decode_close(AVCodecContext *avctx)
{
QSVH2645Context *s = avctx->priv_data;
+ av_freep(&s->qsv.load_plugins);
+
ff_qsv_decode_close(&s->qsv);
qsv_clear_buffers(s);