From 27d45eb2f2654773036806effa3191be8bba7c6c Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 16 Jun 2018 10:39:33 -0700 Subject: [PATCH] iris: don't leak keyboxes when searching for an existing program --- src/gallium/drivers/iris/iris_program_cache.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2