diff options
author | Aaron Watry <[email protected]> | 2013-11-14 12:17:44 -0600 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-11-15 09:53:31 -0800 |
commit | 2be85e2492b6ad7e04884525904a7ec22cde0ddc (patch) | |
tree | 61d4ac5b58b30f587c11d4ab59a102394b656291 /src | |
parent | 01f3622c740173d4001eb421b74d4d60a0c7fd12 (diff) |
radeon/llvm: Free elf_buffer after use
Prevents a memory leak.
v2: Remove null check
CC: "10.0" <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_llvm_emit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c index d2e5642f0c4..92e7dbc7756 100644 --- 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; |