vulkan: fix potential memory leak in create_rect_list_pipeline()
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 8 Sep 2023 22:10:33 +0000 (15:10 -0700)
committerEric Engestrom <eric@engestrom.ch>
Fri, 10 Nov 2023 14:45:05 +0000 (14:45 +0000)
commit8d9fa8ef99ae2699a9a365d71f281865ae717e84
tree34bef630efe8a21e798cf422b19b37629fca5cd6
parente59c24f6b89a0992a4a7a43831f96e3421dc306f
vulkan: fix potential memory leak in create_rect_list_pipeline()

I was playing around with possible improvements to STACK_ARRAY(), and
one of my experiments made gcc point us that we were not freeing
'stages'.

Fixes: 514c10344e6f ("vulkan/meta: Add a concept of rect pipelines")
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26041>
(cherry picked from commit 17e135d3d4a4bb1d835aba6ffdf1997e23360843)
.pick_status.json
src/vulkan/runtime/vk_meta.c