mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
llvm-c-test: Don't leak memory buffers.
Detected by valgrind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193416 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b94be5f21e
commit
50c5b4680d
@ -31,9 +31,11 @@ static LLVMModuleRef load_module(void) {
|
||||
|
||||
if (LLVMParseBitcode(MB, &M, &msg)) {
|
||||
fprintf(stderr, "Error parsing bitcode: %s\n", msg);
|
||||
LLVMDisposeMemoryBuffer(MB);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
LLVMDisposeMemoryBuffer(MB);
|
||||
return M;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user