From: Aaron Watry Date: Wed, 6 Nov 2013 22:49:20 +0000 (-0600) Subject: radeon/llvm: Free libelf resources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2b93da84bda2b92108cf3b9c253fec114b69dc2;p=mesa.git radeon/llvm: Free libelf resources v2: Fix indentation Reviewed-by: Tom Stellard CC: "10.0" --- diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c index 8bf278bb99d..d2e5642f0c4 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_emit.c +++ b/src/gallium/drivers/radeon/radeon_llvm_emit.c @@ -173,6 +173,9 @@ unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_llvm_binary *binary, } } + if (elf){ + elf_end(elf); + } LLVMDisposeMemoryBuffer(out_buffer); LLVMDisposeTargetMachine(tm); return 0;