llvmpipe: Fix leak of CS local memory with 0 threads.

Fixes: bde08ce4d7 ("llvmpipe: handle compute shader launch with 0 threads")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12724>
This commit is contained in:
Emma Anholt 2021-09-03 13:28:58 -07:00 committed by Marge Bot
parent dee8b50cad
commit a83a2b980c
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ lp_cs_tpool_queue_task(struct lp_cs_tpool *pool,
for (unsigned t = 0; t < num_iters; t++) {
work(data, t, &lmem);
}
FREE(lmem.local_mem_ptr);
return NULL;
}
task = CALLOC_STRUCT(lp_cs_tpool_task);