From 1e7a131fd1ed6d9d1fc338f9387f032ee46a3e33 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 24 Aug 2022 08:53:31 -0400 Subject: [PATCH] tu: fix invalid free on alloc failure this is not an allocated pointer cc: mesa-stable Part-of: --- src/freedreno/vulkan/tu_cs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_cs.c b/src/freedreno/vulkan/tu_cs.c index 0d83e5a186b..28fc0f4e069 100644 --- a/src/freedreno/vulkan/tu_cs.c +++ b/src/freedreno/vulkan/tu_cs.c @@ -130,7 +130,6 @@ tu_cs_add_bo(struct tu_cs *cs, uint32_t size) tu_bo_init_new(cs->device, &new_bo, size * sizeof(uint32_t), TU_BO_ALLOC_GPU_READ_ONLY | TU_BO_ALLOC_ALLOW_DUMP); if (result != VK_SUCCESS) { - free(new_bo); return result; }