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:
parent
7d85656fa7
commit
17e135d3d4
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue