OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01f3622
)
radeon/llvm: Free elf_buffer after use
author
Aaron Watry
<awatry@gmail.com>
Thu, 14 Nov 2013 18:17:44 +0000
(12:17 -0600)
committer
Tom Stellard
<thomas.stellard@amd.com>
Fri, 15 Nov 2013 17:53:31 +0000
(09:53 -0800)
Prevents a memory leak.
v2: Remove null check
CC: "10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeon/radeon_llvm_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeon/radeon_llvm_emit.c
b/src/gallium/drivers/radeon/radeon_llvm_emit.c
index
d2e5642
..
92e7dbc
100644
(file)
--- a/
src/gallium/drivers/radeon/radeon_llvm_emit.c
+++ b/
src/gallium/drivers/radeon/radeon_llvm_emit.c
@@
-176,6
+176,7
@@
unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_llvm_binary *binary,
if (elf){
elf_end(elf);
}
+ FREE(elf_buffer);
LLVMDisposeMemoryBuffer(out_buffer);
LLVMDisposeTargetMachine(tm);
return 0;