| 300 | } |
| 301 | |
| 302 | void CheckMemoryLeakImpl::resourceLeakError(const Token *tok, const std::string &varname) const |
| 303 | { |
| 304 | std::string errmsg("Resource leak"); |
| 305 | if (!varname.empty()) |
| 306 | errmsg = "$symbol:" + varname + '\n' + errmsg + ": $symbol"; |
| 307 | reportErr(tok, Severity::error, "resourceLeak", errmsg, CWE(775U)); |
| 308 | } |
| 309 | |
| 310 | void CheckMemoryLeakImpl::deallocuseError(const Token *tok, const std::string &varname) const |
| 311 | { |
no test coverage detected