tu: fix invalid free on alloc failure
this is not an allocated pointer cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18230>
This commit is contained in:

committed by
Marge Bot

parent
b3cc213f56
commit
1e7a131fd1
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user