radeon/llvm: Free elf_buffer after use

Prevents a memory leak.

v2: Remove null check

CC: "10.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
Aaron Watry 2013-11-14 12:17:44 -06:00 committed by Tom Stellard
parent 01f3622c74
commit 2be85e2492
1 changed files with 1 additions and 0 deletions

View File

@ -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;