mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
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>
This commit is contained in:
parent
a2b93da84b
commit
d41b10f811
1 changed files with 1 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ LLVMModuleRef radeon_llvm_parse_bitcode(const unsigned char * bitcode,
|
||||||
buf = LLVMCreateMemoryBufferWithMemoryRangeCopy((const char*)bitcode,
|
buf = LLVMCreateMemoryBufferWithMemoryRangeCopy((const char*)bitcode,
|
||||||
bitcode_len, "radeon");
|
bitcode_len, "radeon");
|
||||||
LLVMParseBitcodeInContext(ctx, buf, &module, NULL);
|
LLVMParseBitcodeInContext(ctx, buf, &module, NULL);
|
||||||
|
LLVMDisposeMemoryBuffer(buf);
|
||||||
return module;
|
return module;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue