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

Method memleakError

lib/checkmemoryleak.cpp:292–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void CheckMemoryLeakImpl::memleakError(const Token *tok, const std::string &varname) const
293{
294 reportErr(tok, Severity::error, "memleak", "$symbol:" + varname + "\nMemory leak: $symbol", CWE(401U));
295}
296
297void CheckMemoryLeakImpl::memleakUponReallocFailureError(const Token *tok, const std::string &reallocfunction, const std::string &varname) const
298{

Callers 2

getErrorMessagesMethod · 0.80
leakErrorMethod · 0.80

Calls 1

CWEClass · 0.70

Tested by

no test coverage detected