From 767b0f82c37f0370c05335120e50f0a534549109 Mon Sep 17 00:00:00 2001 From: Aaron Watry Date: Fri, 8 Nov 2013 13:59:59 -0600 Subject: [PATCH] radeon/llvm: Free target data at end of optimization Reviewed-by: Tom Stellard CC: "10.0" --- src/gallium/drivers/radeon/radeon_llvm_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/radeon_llvm_util.c b/src/gallium/drivers/radeon/radeon_llvm_util.c index cf6d21ed71f..2ace91ff4dc 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_util.c +++ b/src/gallium/drivers/radeon/radeon_llvm_util.c @@ -84,6 +84,7 @@ static void radeon_llvm_optimize(LLVMModuleRef mod) LLVMRunPassManager(pass_manager, mod); LLVMPassManagerBuilderDispose(builder); LLVMDisposePassManager(pass_manager); + LLVMDisposeTargetData(TD); } LLVMModuleRef radeon_llvm_get_kernel_module(LLVMContextRef ctx, unsigned index, -- 2.30.2