When the pool is destroyed, cmds are implicitly freed. Cmd level allocs
have to be cleaned up to avoid leak.
Cc: mesa-stable
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24009>
vn_cs_encoder_fini(&cmd->cs);
vn_object_base_fini(&cmd->base);
+ if (cmd->builder.tmp.data)
+ vk_free(&cmd->allocator, cmd->builder.tmp.data);
+
list_for_each_entry_safe(struct vn_command_buffer_query_batch, batch,
&cmd->query_batches, head) {
list_del(&batch->head);