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>
(cherry picked from commit 17e135d3d4)
This commit is contained in:
Paulo Zanoni 2023-09-08 15:10:33 -07:00 committed by Eric Engestrom
parent e59c24f6b8
commit 8d9fa8ef99
2 changed files with 2 additions and 1 deletions

View file

@ -154,7 +154,7 @@
"description": "vulkan: fix potential memory leak in create_rect_list_pipeline()",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "514c10344e6f2e99776c4bcc907d500f0837dc2b",
"notes": null

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;
}