diff --git a/tests/test-llama-grammar.cpp b/tests/test-llama-grammar.cpp index d0b7c4897..2fa4f99a9 100644 --- a/tests/test-llama-grammar.cpp +++ b/tests/test-llama-grammar.cpp @@ -396,6 +396,7 @@ int main() for (auto &candidate : next_candidates) { delete[] candidate.code_points; + candidate.code_points = nullptr; } return 0; }