| 494 | } |
| 495 | |
| 496 | void CheckMemoryLeakInFunction::getErrorMessages(ErrorLogger& e, const Settings &settings) const |
| 497 | { |
| 498 | CheckMemoryLeakInFunctionImpl c(nullptr, settings, e); |
| 499 | c.memleakError(nullptr, "varname"); |
| 500 | c.resourceLeakError(nullptr, "varname"); |
| 501 | c.deallocuseError(nullptr, "varname"); |
| 502 | const std::list<const Token *> callstack; |
| 503 | c.mismatchAllocDealloc(callstack, "varname"); |
| 504 | c.memleakUponReallocFailureError(nullptr, "realloc", "varname"); |
| 505 | } |
| 506 | |
| 507 | //--------------------------------------------------------------------------- |
| 508 | // Checks for memory leaks in classes.. |
nothing calls this directly
no test coverage detected