Module: Mesa
Branch: master
Commit: a2b93da84bda2b92108cf3b9c253fec114b69dc2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2b93da84bda2b92108cf3b9c253fec114b69dc2

Author: Aaron Watry <awa...@gmail.com>
Date:   Wed Nov  6 16:49:20 2013 -0600

radeon/llvm: Free libelf resources

v2: Fix indentation

Reviewed-by: Tom Stellard <thomas.stell...@amd.com>

CC: "10.0" <mesa-sta...@lists.freedesktop.org>

---

 src/gallium/drivers/radeon/radeon_llvm_emit.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to