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

Method deallocuseError

lib/checkmemoryleak.cpp:310–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void CheckMemoryLeakImpl::deallocuseError(const Token *tok, const std::string &varname) const
311{
312 reportErr(tok, Severity::error, "deallocuse", "$symbol:" + varname + "\nDereferencing '$symbol' after it is deallocated / released", CWE(416U));
313}
314
315void CheckMemoryLeakImpl::mismatchAllocDealloc(const std::list<const Token *> &callstack, const std::string &varname) const
316{

Callers 2

getErrorMessagesMethod · 0.80
deallocUseErrorMethod · 0.80

Calls 1

CWEClass · 0.70

Tested by

no test coverage detected