From 2b1ec9a07f8f31a56e3bd4d22229fa8c4e5786aa Mon Sep 17 00:00:00 2001 From: Raphael Geissert Date: Mon, 3 Jan 2011 20:40:31 -0600 Subject: [PATCH] Mention the name of the variable in the inconclusive leak msg --- lib/checkmemoryleak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 9108e406a..b28113555 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -2357,7 +2357,7 @@ void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string if (! noerr) { std::ostringstream errmsg; - errmsg << "inconclusive leak: "; + 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());