radeon/llvm: Free created llvm memory buffer
authorAaron Watry <awatry@gmail.com>
Wed, 6 Nov 2013 22:49:21 +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_util.c

index 7192dee9732a6f711846a0fbd3d3bca1c2cf7e54..f2b3e136d4734d2e2e9c58541e18a5cce5a8f0e8 100644 (file)
@@ -42,6 +42,7 @@ LLVMModuleRef radeon_llvm_parse_bitcode(const unsigned char * bitcode,
        buf = LLVMCreateMemoryBufferWithMemoryRangeCopy((const char*)bitcode,
                                                        bitcode_len, "radeon");
        LLVMParseBitcodeInContext(ctx, buf, &module, NULL);
+       LLVMDisposeMemoryBuffer(buf);
        return module;
 }