Memory leak : a little different handling when the callstack gets too big
This commit is contained in:
parent
b7b737c8f2
commit
35cdb6b0ba
|
@ -213,7 +213,7 @@ const char * CheckMemoryLeakClass::call_func( const TOKEN *tok, std::list<const
|
|||
return 0;
|
||||
|
||||
if ( callstack.size() > 2 )
|
||||
return "dealloc";
|
||||
return "dealloc_";
|
||||
|
||||
const char *funcname = tok->aaaa();
|
||||
for ( std::list<const TOKEN *>::const_iterator it = callstack.begin(); it != callstack.end(); ++it )
|
||||
|
@ -1102,7 +1102,7 @@ void CheckMemoryLeakClass::CheckMemoryLeak_CheckScope( const TOKEN *Tok1, const
|
|||
tok2->str("use");
|
||||
else if (tok2->str() == "&use2")
|
||||
tok2->str(";");
|
||||
else if (tok2->str() == "recursive")
|
||||
else if (tok2->str() == "recursive" || tok2->str() == "dealloc_")
|
||||
tok2->str("dealloc");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue