summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-11-06 16:49:20 -0600
committerIan Romanick <ian.d.romanick@intel.com>2013-11-15 13:39:40 -0800
commit02807c06b89ccd185e007580b5b50da5bf399e27 (patch)
tree024a88bb01736922c3671240dd727445b7c261cc /src/gallium
parent9ed045274061ec744b74116c7f49ce7d2960531c (diff)
radeon/llvm: Free libelf resources
v2: Fix indentation Reviewed-by: Tom Stellard <thomas.stellard@amd.com> CC: "10.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit a2b93da84bda2b92108cf3b9c253fec114b69dc2)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeon/radeon_llvm_emit.c3
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 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;