From ba52d7802e0fcb676a3311eab755b1179a67d6bb Mon Sep 17 00:00:00 2001 From: averne Date: Tue, 10 Jun 2025 20:58:55 +0200 Subject: [PATCH] vulkan: fix leak in FFVkExecPool --- 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],