Mesa (master): radeon/llvm: Free created llvm memory buffer
Tom Stellard
tstellar at kemper.freedesktop.org
Fri Nov 15 17:19:41 UTC 2013
Module: Mesa
Branch: master
Commit: d41b10f811a89c76248f195a6b4ade62322b8c3c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d41b10f811a89c76248f195a6b4ade62322b8c3c
Author: Aaron Watry <awatry at gmail.com>
Date: Wed Nov 6 16:49:21 2013 -0600
radeon/llvm: Free created llvm memory buffer
v2: Fix indentation
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
CC: "10.0" <mesa-stable at lists.freedesktop.org>
---
src/gallium/drivers/radeon/radeon_llvm_util.c | 1 +
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 7192dee..f2b3e13 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;
}
More information about the mesa-commit
mailing list