diff options
author | Aaron Watry <[email protected]> | 2013-11-06 16:49:20 -0600 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-11-15 09:16:49 -0800 |
commit | a2b93da84bda2b92108cf3b9c253fec114b69dc2 (patch) | |
tree | 191a309004a31e035782000a9c8e9c527b4ce588 /src/gallium/drivers/radeon/radeon_llvm_emit.c | |
parent | df482fe02f6732fb6fe7ae0a509b3c66e655bd5b (diff) |
radeon/llvm: Free libelf resources
v2: Fix indentation
Reviewed-by: Tom Stellard <[email protected]>
CC: "10.0" <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_llvm_emit.c')
-rw-r--r-- | 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 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; |