src/checkmemoryleak.cpp(GetDeallocationType): removed brackets.
No functional change.
This commit is contained in:
parent
2d8b08d4ab
commit
1e2545439e
|
@ -181,9 +181,7 @@ CheckMemoryLeakClass::AllocType CheckMemoryLeakClass::GetDeallocationType(const
|
||||||
|
|
||||||
if (Token::simpleMatch(tok, std::string("free ( " + names + " ) ;").c_str()) ||
|
if (Token::simpleMatch(tok, std::string("free ( " + names + " ) ;").c_str()) ||
|
||||||
Token::simpleMatch(tok, std::string("kfree ( " + names + " ) ;").c_str()))
|
Token::simpleMatch(tok, std::string("kfree ( " + names + " ) ;").c_str()))
|
||||||
{
|
|
||||||
return Malloc;
|
return Malloc;
|
||||||
}
|
|
||||||
|
|
||||||
if (Token::simpleMatch(tok, std::string("g_free ( " + names + " ) ;").c_str()))
|
if (Token::simpleMatch(tok, std::string("g_free ( " + names + " ) ;").c_str()))
|
||||||
return gMalloc;
|
return gMalloc;
|
||||||
|
|
Loading…
Reference in New Issue