venus: Fix failure path on pipeline creation

It's not sufficient to vk_free() the pipeline. We must also
vn_object_base_fini().

Signed-off-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17847>
This commit is contained in:
Chad Versace
2022-08-12 15:57:05 -07:00
committed by Marge Bot
parent ad8c8e366a
commit f81915585d

View File

@@ -259,7 +259,9 @@ vn_create_pipeline_handles(struct vn_device *dev,
if (!pipeline) {
for (uint32_t j = 0; j < i; j++) {
vk_free(alloc, pipeline_handles[j]);
pipeline = vn_pipeline_from_handle(pipeline_handles[j]);
vn_object_base_fini(&pipeline->base);
vk_free(alloc, pipeline);
}
memset(pipeline_handles, 0,