mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
llvm-cov: Clean up memory leaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec3ce8a99d
commit
d881c1bdd1
@ -292,7 +292,7 @@ void FileInfo::print(raw_fd_ostream &OS, StringRef gcnoFile,
|
||||
errs() << Filename << ": " << ec.message() << "\n";
|
||||
return;
|
||||
}
|
||||
StringRef AllLines = Buff.take()->getBuffer();
|
||||
StringRef AllLines = Buff->getBuffer();
|
||||
uint32_t i = 0;
|
||||
while (!AllLines.empty()) {
|
||||
if (L.find(i) != L.end()) {
|
||||
|
@ -58,7 +58,7 @@ int main(int argc, char **argv) {
|
||||
errs() << InputGCNO << ": " << ec.message() << "\n";
|
||||
return 1;
|
||||
}
|
||||
GCOVBuffer GCNO_GB(GCNO_Buff.take());
|
||||
GCOVBuffer GCNO_GB(GCNO_Buff.get());
|
||||
if (!GF.read(GCNO_GB)) {
|
||||
errs() << "Invalid .gcno File!\n";
|
||||
return 1;
|
||||
@ -70,7 +70,7 @@ int main(int argc, char **argv) {
|
||||
errs() << InputGCDA << ": " << ec.message() << "\n";
|
||||
return 1;
|
||||
}
|
||||
GCOVBuffer GCDA_GB(GCDA_Buff.take());
|
||||
GCOVBuffer GCDA_GB(GCDA_Buff.get());
|
||||
if (!GF.read(GCDA_GB)) {
|
||||
errs() << "Invalid .gcda File!\n";
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user