| 295 | } |
| 296 | |
| 297 | void CheckMemoryLeakImpl::memleakUponReallocFailureError(const Token *tok, const std::string &reallocfunction, const std::string &varname) const |
| 298 | { |
| 299 | reportErr(tok, Severity::error, "memleakOnRealloc", "$symbol:" + varname + "\nCommon " + reallocfunction + " mistake: \'$symbol\' nulled but not freed upon failure", CWE(401U)); |
| 300 | } |
| 301 | |
| 302 | void CheckMemoryLeakImpl::resourceLeakError(const Token *tok, const std::string &varname) const |
| 303 | { |