Skip to content

Commit

Permalink
evaluator: Fixed use after free with pattern local arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jan 16, 2025
1 parent db61966 commit 4e74b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/source/pl/core/ast/ast_node_array_variable_decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ namespace pl::core::ast {
}

if (this->m_placementSection != nullptr && !evaluator->isGlobalScope()) {
resultPatterns.clear();
evaluator->addPattern(std::move(pattern));
resultPatterns.pop_back();
}
}
}
Expand Down

0 comments on commit 4e74b70

Please sign in to comment.