[FFmpeg-cvslog] avcodec/qsv_h2645: fix memory leak for plugin load

Xu Guangxin git at videolan.org
Sat Jan 23 18:56:17 EET 2021


ffmpeg | branch: master | Xu Guangxin <guangxin.xu at intel.com> | Tue Jan  5 10:43:37 2021 +0800| [4c47b41782e9f8f875b1f7a791d53f5cbc933e63] | committer: Linjie Fu

avcodec/qsv_h2645: fix memory leak for plugin load

Signed-off-by: Xu Guangxin <guangxin.xu at intel.com>
Signed-off-by: Linjie Fu <linjie.justin.fu at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c47b41782e9f8f875b1f7a791d53f5cbc933e63
---

 libavcodec/qsvdec_h2645.c | 2 ++
 1 file changed, 2 insertions(+)

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);



More information about the ffmpeg-cvslog mailing list