| 253 | } |
| 254 | |
| 255 | bool CheckMemoryLeakImpl::isOpenDevNull(const Token *tok) const |
| 256 | { |
| 257 | if (mSettings.hasLib("posix") && tok->str() == "open" && numberOfArguments(tok) == 2) { |
| 258 | const Token* arg = getArguments(tok).at(0); |
| 259 | if (Token::simpleMatch(arg, "\"/dev/null\"")) |
| 260 | return true; |
| 261 | } |
| 262 | return false; |
| 263 | } |
| 264 | |
| 265 | void CheckMemoryLeakImpl::memoryLeak(const Token *tok, const std::string &varname, AllocType alloctype) const |
| 266 | { |
nothing calls this directly
no test coverage detected