diff options
author | Kenneth Graunke <[email protected]> | 2018-06-16 10:39:33 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:07 -0800 |
commit | 27d45eb2f2654773036806effa3191be8bba7c6c (patch) | |
tree | ae22cea0ece440ac8b1db35f3a2cdfb7e38d733c /src/gallium | |
parent | 7d504f3d52a142d72bebce8d0e9221a88b9d0b73 (diff) |
iris: don't leak keyboxes when searching for an existing program
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/iris/iris_program_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_program_cache.c b/src/gallium/drivers/iris/iris_program_cache.c index 8a55dc91cc7..700648f0d4e 100644 --- a/src/gallium/drivers/iris/iris_program_cache.c +++ b/src/gallium/drivers/iris/iris_program_cache.c @@ -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; } |