[FFmpeg-cvslog] vulkan: fix leak in FFVkExecPool

averne git at videolan.org
Wed Jun 11 07:30:32 EEST 2025


ffmpeg | branch: master | averne <averne381-at-gmail.com at ffmpeg.org> | Tue Jun 10 20:58:55 2025 +0200| [ba52d7802e0fcb676a3311eab755b1179a67d6bb] | committer: Lynne

vulkan: fix leak in FFVkExecPool

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

 libavutil/vulkan.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index 661b9c1c54..e33dbb2113 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -332,6 +332,8 @@ void ff_vk_exec_pool_free(FFVulkanContext *s, FFVkExecPool *pool)
         av_freep(&sd->desc_sets);
     }
 
+    av_freep(&pool->reg_shd);
+
     for (int i = 0; i < pool->pool_size; i++) {
         if (pool->cmd_buf_pools[i])
             vk->FreeCommandBuffers(s->hwctx->act_dev, pool->cmd_buf_pools[i],



More information about the ffmpeg-cvslog mailing list