Fixed ticket #2405 (debug messages provide incorrect file:line information)
This commit is contained in:
parent
5ae7c4506f
commit
05f16a25af
|
@ -2180,7 +2180,7 @@ void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string
|
||||||
errmsg << "inconclusive leak of " << varname << ": ";
|
errmsg << "inconclusive leak of " << varname << ": ";
|
||||||
for (const Token *tok2 = tok; tok2; tok2 = tok2->next())
|
for (const Token *tok2 = tok; tok2; tok2 = tok2->next())
|
||||||
errmsg << " " << tok2->str();
|
errmsg << " " << tok2->str();
|
||||||
reportError(_tokenizer->tokens(), Severity::debug, "debug", errmsg.str());
|
reportError(first, Severity::debug, "debug", errmsg.str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue