From 0624e418f108835da1c2d243b451438a1497ba06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 29 Jan 2011 18:46:55 +0100 Subject: [PATCH] Memory leaks: bug fix. don't skip '}' by accident --- lib/checkmemoryleak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index dcb203360..1b1dc891f 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -921,7 +921,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::listvarId() == varid || - tok2->str() == ":" || tok2->str() == "{") + tok2->str() == ":" || tok2->str() == "{" || tok2->str() == "}") { break; }