Code cleanup: remove explicit flush() in favor of using the ostream's str()

llvm-svn: 105657
This commit is contained in:
Jordy Rose 2010-06-08 22:59:01 +00:00
parent 6ab55c5683
commit 954238366b
1 changed files with 1 additions and 2 deletions

View File

@ -398,8 +398,7 @@ void MallocChecker::ReportBadFree(CheckerContext &C, SVal ArgVal,
os << "not memory allocated by malloc()";
}
os.flush();
EnhancedBugReport *R = new EnhancedBugReport(*BT_BadFree, buf.str(), N);
EnhancedBugReport *R = new EnhancedBugReport(*BT_BadFree, os.str(), N);
R->addRange(range);
C.EmitReport(R);
}