From d41b10f811a89c76248f195a6b4ade62322b8c3c Mon Sep 17 00:00:00 2001 From: Aaron Watry Date: Wed, 6 Nov 2013 16:49:21 -0600 Subject: radeon/llvm: Free created llvm memory buffer v2: Fix indentation Reviewed-by: Tom Stellard CC: "10.0" --- src/gallium/drivers/radeon/radeon_llvm_util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/radeon/radeon_llvm_util.c b/src/gallium/drivers/radeon/radeon_llvm_util.c index 7192dee9732..f2b3e136d47 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_util.c +++ b/src/gallium/drivers/radeon/radeon_llvm_util.c @@ -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; } -- cgit v1.2.3