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:
Benjamin Kramer
2013-11-15 09:44:17 +00:00
parent ec3ce8a99d
commit d881c1bdd1
2 changed files with 3 additions and 3 deletions

View File

@@ -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()) {