Fixed ticket #2405 (debug messages provide incorrect file:line information)

This commit is contained in:
Edoardo Prezioso 2012-01-06 15:15:52 +01:00
parent 5ae7c4506f
commit 05f16a25af
1 changed files with 1 additions and 1 deletions

View File

@ -2180,7 +2180,7 @@ void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string
errmsg << "inconclusive leak of " << varname << ": ";
for (const Token *tok2 = tok; tok2; tok2 = tok2->next())
errmsg << " " << tok2->str();
reportError(_tokenizer->tokens(), Severity::debug, "debug", errmsg.str());
reportError(first, Severity::debug, "debug", errmsg.str());
}
}