llvm.org GIT mirror llvm / 50c5b46
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 Benjamin Kramer 5 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3030
3131 if (LLVMParseBitcode(MB, &M, &msg)) {
3232 fprintf(stderr, "Error parsing bitcode: %s\n", msg);
33 LLVMDisposeMemoryBuffer(MB);
3334 exit(1);
3435 }
3536
37 LLVMDisposeMemoryBuffer(MB);
3638 return M;
3739 }
3840