projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2b93da
)
radeon/llvm: Free created llvm memory buffer
author
Aaron Watry
<awatry@gmail.com>
Wed, 6 Nov 2013 22:49:21 +0000
(16:49 -0600)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeon/radeon_llvm_util.c
b/src/gallium/drivers/radeon/radeon_llvm_util.c
index 7192dee9732a6f711846a0fbd3d3bca1c2cf7e54..f2b3e136d4734d2e2e9c58541e18a5cce5a8f0e8 100644
(file)
--- 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;
}