Skip to content

Commit 05f16a2

Browse files
committed
Fixed ticket #2405 (debug messages provide incorrect file:line information)
1 parent 5ae7c45 commit 05f16a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkmemoryleak.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,7 @@ void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string
21802180
errmsg << "inconclusive leak of " << varname << ": ";
21812181
for (const Token *tok2 = tok; tok2; tok2 = tok2->next())
21822182
errmsg << " " << tok2->str();
2183-
reportError(_tokenizer->tokens(), Severity::debug, "debug", errmsg.str());
2183+
reportError(first, Severity::debug, "debug", errmsg.str());
21842184
}
21852185
}
21862186

0 commit comments

Comments
 (0)