We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d5e72d commit da2ad8dCopy full SHA for da2ad8d
1 file changed
lib/checkmemoryleak.cpp
@@ -749,7 +749,7 @@ bool CheckMemoryLeakStructMember::isMalloc(const Variable* variable) const
749
while (tok3 && tok3->isCast())
750
tok3 = tok3->astOperand2() ? tok3->astOperand2() : tok3->astOperand1();
751
if ((tok3 && Token::Match(tok3->tokAt(-1), "%name% (") && mSettings->library.getAllocFuncInfo(tok3->tokAt(-1))) ||
752
- (Token::simpleMatch(tok3, "new") && tok3->isCpp()) {
+ (Token::simpleMatch(tok3, "new") && tok3->isCpp())) {
753
alloc = true;
754
}
755
0 commit comments