From: Aaron Watry Date: Fri, 8 Nov 2013 19:59:59 +0000 (-0600) Subject: radeon/llvm: Free target data at end of optimization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=767b0f82c37f0370c05335120e50f0a534549109;p=mesa.git radeon/llvm: Free target data at end of optimization Reviewed-by: Tom Stellard CC: "10.0" --- 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,