Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
8cc33f4c
"vscode:/vscode.git/clone" did not exist on "eea76892e87c600d98934c987c7e067640a9ce16"
Unverified
Commit
8cc33f4c
authored
May 13, 2025
by
Parth Sareen
Committed by
GitHub
May 13, 2025
Browse files
llama: fix memory leak for grammar (#10696)
parent
f46df4e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
llama/sampling_ext.cpp
llama/sampling_ext.cpp
+3
-0
No files found.
llama/sampling_ext.cpp
View file @
8cc33f4c
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment