diff --git a/src/amd/vulkan/radv_pipeline_rt.c b/src/amd/vulkan/radv_pipeline_rt.c index 08ff87e3677..14b4c75d8fc 100644 --- a/src/amd/vulkan/radv_pipeline_rt.c +++ b/src/amd/vulkan/radv_pipeline_rt.c @@ -543,6 +543,7 @@ radv_rt_nir_to_asm(struct radv_device *device, struct vk_pipeline_cache *cache, if (dump_shader) simple_mtx_unlock(&instance->shader_dump_mtx); + ralloc_free(mem_ctx); free(binary); *out_shader = shader;