Memory leak: limit the max call depth to 2
This commit is contained in:
parent
d6075a2125
commit
8f3c688020
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue