Fixed #3527 (Internal error. Token::Match called with varid 0. Please report this to Cppcheck developers)
This commit is contained in:
parent
01f6bbda62
commit
46b8dc5e16
|
@ -2556,6 +2556,8 @@ void CheckMemoryLeakInClass::checkPublicFunctions(const Scope *scope, const Toke
|
|||
return;
|
||||
|
||||
const unsigned int varid = classtok->varId();
|
||||
if (varid == 0)
|
||||
return;
|
||||
|
||||
// Parse public functions..
|
||||
// If they allocate member variables, they should also deallocate
|
||||
|
|
Loading…
Reference in New Issue