[Mesa-dev] [PATCH] radv: fix memory leak when restoring from cache
Timothy Arceri
tarceri at itsqueeze.com
Wed Jul 10 04:11:23 UTC 2019
Fixes: 726a31df705b ("radv: Add the concept of radv shader binaries.")
---
src/amd/vulkan/radv_pipeline_cache.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/amd/vulkan/radv_pipeline_cache.c b/src/amd/vulkan/radv_pipeline_cache.c
index 2b3fda6eb8e..b773de30c32 100644
--- a/src/amd/vulkan/radv_pipeline_cache.c
+++ b/src/amd/vulkan/radv_pipeline_cache.c
@@ -309,6 +309,7 @@ radv_create_shader_variants_from_pipeline_cache(struct radv_device *device,
p += entry->binary_sizes[i];
entry->variants[i] = radv_shader_variant_create(device, binary);
+ free(binary);
} else if (entry->binary_sizes[i]) {
p += entry->binary_sizes[i];
}
--
2.21.0
More information about the mesa-dev
mailing list