[FFmpeg-devel] [PATCH] lavc/qsv: fix a memory leak in ff_qsv_set_display_handle()
Zhong Li
zhong.li at intel.com
Sun Sep 29 11:01:06 EEST 2019
Reported-by: Linjie Fu <linjie.fu at intel.com>
Signed-off-by: Zhong Li <zhong.li at intel.com>
---
libavcodec/qsv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index 994c9eb..a43f0d5 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -838,6 +838,8 @@ int ff_qsv_close_internal_session(QSVSession *qs)
if (qs->va_device_ctx) {
qs->va_device_ctx->free(qs->va_device_ctx);
}
+
+ av_buffer_unref(&qs->va_device_ref);
#endif
return 0;
}
--
2.7.4
More information about the ffmpeg-devel
mailing list