MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getErrorMessages

Method getErrorMessages

lib/checkmemoryleak.cpp:496–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496void 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..

Callers

nothing calls this directly

Calls 10

memleakErrorMethod · 0.80
resourceLeakErrorMethod · 0.80
deallocuseErrorMethod · 0.80
publicAllocationErrorMethod · 0.80
unsafeClassErrorMethod · 0.80
functionCallLeakMethod · 0.80
unsafeArgAllocErrorMethod · 0.80
mismatchAllocDeallocMethod · 0.45

Tested by

no test coverage detected