Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Mar 6, 2024
1 parent d5b2c46 commit 8951166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checkleakautovar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static bool isAutoDeallocType(const Type* type) {
if (std::any_of(varlist.begin(), varlist.end(), [](const Variable& v) {
return !v.valueType() || !v.valueType()->isPrimitive();
}))
return true;
return true;
if (std::none_of(type->derivedFrom.cbegin(), type->derivedFrom.cend(), [](const Type::BaseInfo& bi) {
return isAutoDeallocType(bi.type);
}))
Expand Down

0 comments on commit 8951166

Please sign in to comment.