iris: don't leak keyboxes when searching for an existing program
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 16 Jun 2018 17:39:33 +0000 (10:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_program_cache.c

index 8a55dc91cc7c559fe96e027e696ac5ae375c3fd2..700648f0d4e9fa8e213f0cac998b9c109c84ede1 100644 (file)
@@ -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;
 }