From a2b93da84bda2b92108cf3b9c253fec114b69dc2 Mon Sep 17 00:00:00 2001 From: Aaron Watry Date: Wed, 6 Nov 2013 16:49:20 -0600 Subject: [PATCH] radeon/llvm: Free libelf resources v2: Fix indentation Reviewed-by: Tom Stellard CC: "10.0" --- src/gallium/drivers/radeon/radeon_llvm_emit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c index 8bf278b..d2e5642 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; -- 2.7.4