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: 514c10344e ("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>
This commit is contained in:
Paulo Zanoni 2023-09-08 15:10:33 -07:00 committed by Marge Bot
parent 7d85656fa7
commit 17e135d3d4

View file

@ -398,6 +398,7 @@ create_rect_list_pipeline(struct vk_device *device,
pipeline_out);
STACK_ARRAY_FINISH(dyn_state);
STACK_ARRAY_FINISH(stages);
return result;
}