Mesa (main): anv: fix execbuf syncobjs/syncobj_values array leak

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 24 17:52:11 UTC 2021


Module: Mesa
Branch: main
Commit: 87888c0b3fe61abc9674187074d96864b094c067
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=87888c0b3fe61abc9674187074d96864b094c067

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Wed Nov 24 17:28:24 2021 +0200

anv: fix execbuf syncobjs/syncobj_values array leak

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: 36ea90a3619f ("anv: Convert to the common sync and submit framework")
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13945>

---

 src/intel/vulkan/anv_batch_chain.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c
index 8fc51e03b30..e603712412b 100644
--- a/src/intel/vulkan/anv_batch_chain.c
+++ b/src/intel/vulkan/anv_batch_chain.c
@@ -1217,6 +1217,8 @@ anv_execbuf_init(struct anv_execbuf *exec)
 static void
 anv_execbuf_finish(struct anv_execbuf *exec)
 {
+   vk_free(exec->alloc, exec->syncobjs);
+   vk_free(exec->alloc, exec->syncobj_values);
    vk_free(exec->alloc, exec->surface_states_relocs);
    vk_free(exec->alloc, exec->objects);
    vk_free(exec->alloc, exec->bos);



More information about the mesa-commit mailing list