Skip to content

Commit da2ad8d

Browse files
Update checkmemoryleak.cpp
1 parent 8d5e72d commit da2ad8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checkmemoryleak.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ bool CheckMemoryLeakStructMember::isMalloc(const Variable* variable) const
749749
while (tok3 && tok3->isCast())
750750
tok3 = tok3->astOperand2() ? tok3->astOperand2() : tok3->astOperand1();
751751
if ((tok3 && Token::Match(tok3->tokAt(-1), "%name% (") && mSettings->library.getAllocFuncInfo(tok3->tokAt(-1))) ||
752-
(Token::simpleMatch(tok3, "new") && tok3->isCpp()) {
752+
(Token::simpleMatch(tok3, "new") && tok3->isCpp())) {
753753
alloc = true;
754754
}
755755
}

0 commit comments

Comments
 (0)