From b8e0ea81a623a9ffec4b727a88896bdbbdc866e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 23 Dec 2008 08:25:16 +0000 Subject: [PATCH] memory leaks : bug fix --- checkmemoryleak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkmemoryleak.cpp b/checkmemoryleak.cpp index 7cb90c160..506484f22 100644 --- a/checkmemoryleak.cpp +++ b/checkmemoryleak.cpp @@ -573,7 +573,7 @@ TOKEN *CheckMemoryLeakClass::getcode(const TOKEN *tok, std::list { for ( const TOKEN *tok2 = tok->tokAt(5); tok2; tok2 = tok2->next() ) { - if ( TOKEN::Match(tok2, ";{") ) + if ( TOKEN::Match(tok2, "[;{]") ) break; else if ( tok2->str() == varname ) {