From 8f3c68802031a183fe28a9637bb5a3e6f5300c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 18 Nov 2008 19:44:27 +0000 Subject: [PATCH] Memory leak: limit the max call depth to 2 --- CheckMemoryLeak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CheckMemoryLeak.cpp b/CheckMemoryLeak.cpp index 03876d34e..a9e5cb3ef 100644 --- a/CheckMemoryLeak.cpp +++ b/CheckMemoryLeak.cpp @@ -177,7 +177,7 @@ const char * CheckMemoryLeakClass::call_func( const TOKEN *tok, std::list 10 ) + if ( callstack.size() > 2 ) return 0; const char *funcname = tok->str;