llvm.org GIT mirror llvm / d881c1b
llvm-cov: Clean up memory leaks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194799 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 6 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
291291 errs() << Filename << ": " << ec.message() << "\n";
292292 return;
293293 }
294 StringRef AllLines = Buff.take()->getBuffer();
294 StringRef AllLines = Buff->getBuffer();
295295 uint32_t i = 0;
296296 while (!AllLines.empty()) {
297297 if (L.find(i) != L.end()) {
5757 errs() << InputGCNO << ": " << ec.message() << "\n";
5858 return 1;
5959 }
60 GCOVBuffer GCNO_GB(GCNO_Buff.take());
60 GCOVBuffer GCNO_GB(GCNO_Buff.get());
6161 if (!GF.read(GCNO_GB)) {
6262 errs() << "Invalid .gcno File!\n";
6363 return 1;
6969 errs() << InputGCDA << ": " << ec.message() << "\n";
7070 return 1;
7171 }
72 GCOVBuffer GCDA_GB(GCDA_Buff.take());
72 GCOVBuffer GCDA_GB(GCDA_Buff.get());
7373 if (!GF.read(GCDA_GB)) {
7474 errs() << "Invalid .gcda File!\n";
7575 return 1;