radeon/llvm: Free libelf resources
authorAaron Watry <awatry@gmail.com>
Wed, 6 Nov 2013 22:49:20 +0000 (16:49 -0600)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 15 Nov 2013 17:16:49 +0000 (09:16 -0800)
v2: Fix indentation

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
CC: "10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeon/radeon_llvm_emit.c

index 8bf278bb99d3912b65b3b0e3a08269481f9ddc7c..d2e5642f0c4cc65dc64ca6018a8ad8299f386296 100644 (file)
@@ -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;