| 108 | |
| 109 | |
| 110 | void CheckLeakAutoVarImpl::leakError(const Token *tok, const std::string &varname, int type) const |
| 111 | { |
| 112 | const CheckMemoryLeakImpl checkmemleak(mTokenizer, mSettings, mErrorLogger); |
| 113 | if (Library::isresource(type)) |
| 114 | checkmemleak.resourceLeakError(tok, varname); |
| 115 | else |
| 116 | checkmemleak.memleakError(tok, varname); |
| 117 | } |
| 118 | |
| 119 | void CheckLeakAutoVarImpl::mismatchError(const Token *deallocTok, const Token *allocTok, const std::string &varname) const |
| 120 | { |
nothing calls this directly
no test coverage detected