summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Watry <[email protected]>2013-11-06 16:49:21 -0600
committerTom Stellard <[email protected]>2013-11-15 09:16:49 -0800
commitd41b10f811a89c76248f195a6b4ade62322b8c3c (patch)
treef049a945a6fc652bec4b673761809e5d8ff67255
parenta2b93da84bda2b92108cf3b9c253fec114b69dc2 (diff)
radeon/llvm: Free created llvm memory buffer
v2: Fix indentation Reviewed-by: Tom Stellard <[email protected]> CC: "10.0" <[email protected]>
-rw-r--r--src/gallium/drivers/radeon/radeon_llvm_util.c1
1 files changed, 1 insertions, 0 deletions
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;
}