Skip to content

Commit bff0296

Browse files
Update checkmemoryleak.cpp
1 parent da2ad8d commit bff0296

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/checkmemoryleak.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,13 +735,13 @@ void CheckMemoryLeakStructMember::check()
735735
}
736736
}
737737

738-
bool CheckMemoryLeakStructMember::isMalloc(const Variable* variable) const
738+
bool CheckMemoryLeakStructMember::isMalloc(const Variable *variable) const
739739
{
740740
if (!variable)
741741
return false;
742742
const int declarationId(variable->declarationId());
743743
bool alloc = false;
744-
for (const Token* tok2 = variable->nameToken(); tok2 && tok2 != variable->scope()->bodyEnd; tok2 = tok2->next()) {
744+
for (const Token *tok2 = variable->nameToken(); tok2 && tok2 != variable->scope()->bodyEnd; tok2 = tok2->next()) {
745745
if (Token::Match(tok2, "= %varid% [;=]", declarationId))
746746
return false;
747747
if (Token::Match(tok2, "%varid% =", declarationId)) {

0 commit comments

Comments
 (0)