"vscode:/vscode.git/clone" did not exist on "eea76892e87c600d98934c987c7e067640a9ce16"
Unverified Commit 8cc33f4c authored by Parth Sareen's avatar Parth Sareen Committed by GitHub
Browse files

llama: fix memory leak for grammar (#10696)

parent f46df4e5
......@@ -114,6 +114,9 @@ void grammar_free(struct llama_grammar *g) {
if (g->vocab != nullptr) {
delete g->vocab;
}
if (g->o_vocab != nullptr) {
delete g->o_vocab;
}
llama_grammar_free_impl(g);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment