diff --git a/tests/test-llama-grammar.cpp b/tests/test-llama-grammar.cpp index 2fa4f99a9..f98c6531f 100644 --- a/tests/test-llama-grammar.cpp +++ b/tests/test-llama-grammar.cpp @@ -398,5 +398,6 @@ int main() delete[] candidate.code_points; candidate.code_points = nullptr; } + delete grammar; return 0; }