Skip to content

Commit

Permalink
fix #13356
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Nov 28, 2024
1 parent b942270 commit 8ece426
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 @@ -57,7 +57,7 @@ static constexpr int NEW_ARRAY = -2;
static constexpr int NEW = -1;

static const std::array<std::pair<std::string, std::string>, 4> alloc_failed_conds {{{"==", "0"}, {"<", "0"}, {"==", "-1"}, {"<=", "-1"}}};
static const std::array<std::pair<std::string, std::string>, 4> alloc_success_conds {{{"!=", "0"}, {">", "0"}, {"!=", "-1"}, {">=", "0"}}};
static const std::array<std::pair<std::string, std::string>, 5> alloc_success_conds {{{"!=", "0"}, {">", "0"}, {"!=", "-1"}, {">=", "0"}, {">", "-1"}}};

static bool isAutoDeallocType(const Type* type) {
if (!type || !type->classScope)
Expand Down

0 comments on commit 8ece426

Please sign in to comment.