summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-11-06 16:49:21 -0600
committerIan Romanick <ian.d.romanick@intel.com>2013-11-15 13:39:41 -0800
commit531637feee3c4fa378f2fe25399cff833592b269 (patch)
tree15f300a9941cb273ced5627461549d4bb5ce1793 /src/gallium
parent02807c06b89ccd185e007580b5b50da5bf399e27 (diff)
radeon/llvm: Free created llvm memory buffer
v2: Fix indentation Reviewed-by: Tom Stellard <thomas.stellard@amd.com> CC: "10.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit d41b10f811a89c76248f195a6b4ade62322b8c3c)
Diffstat (limited to 'src/gallium')
-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;
}