Memory leak: limit the max call depth to 2

This commit is contained in:
Daniel Marjamäki 2008-11-18 19:44:27 +00:00
parent d6075a2125
commit 8f3c688020
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ const char * CheckMemoryLeakClass::call_func( const TOKEN *tok, std::list<const
if (GetAllocationType(tok)!=No || GetDeallocationType(tok,varnames)!=No)
return 0;
if ( callstack.size() > 10 )
if ( callstack.size() > 2 )
return 0;
const char *funcname = tok->str;