[Mesa-dev] [PATCH 2/6] radeon/llvm: Free libelf resources

Aaron Watry awatry at gmail.com
Wed Nov 6 14:49:20 PST 2013


v2: Fix indentation

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
---
 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;
-- 
1.8.3.2



More information about the mesa-dev mailing list