From: Kenneth Graunke Date: Sat, 16 Jun 2018 17:39:33 +0000 (-0700) Subject: iris: don't leak keyboxes when searching for an existing program X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27d45eb2f2654773036806effa3191be8bba7c6c;p=mesa.git iris: don't leak keyboxes when searching for an existing program --- 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; }