mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
iris: don't leak keyboxes when searching for an existing program
This commit is contained in:
parent
7d504f3d52
commit
27d45eb2f2
1 changed files with 2 additions and 0 deletions
|
|
@ -138,6 +138,8 @@ iris_find_cached_shader(struct iris_context *ice,
|
|||
struct hash_entry *entry =
|
||||
_mesa_hash_table_search(ice->shaders.cache, keybox);
|
||||
|
||||
ralloc_free(keybox);
|
||||
|
||||
return entry ? entry->data : NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue