forked from OSchip/llvm-project
Code cleanup: remove explicit flush() in favor of using the ostream's str()
llvm-svn: 105657
This commit is contained in:
parent
6ab55c5683
commit
954238366b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue