8000 tools : fix invalid free() by aumfer · Pull Request #13436 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

tools : fix invalid free() #13436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use C++11 initializer syntax
  • Loading branch information
aumfer committed May 11, 2025
commit 52c2ca290603a67a1744d93bce9e28446b982a61
4 changes: 1 addition & 3 deletions tools/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ struct server_context {

llama_context_params cparams_dft;

llama_batch batch;
llama_batch batch = {};

bool clean_kv_cache = true;
bool add_bos_token = true;
Expand All @@ -1884,8 +1884,6 @@ struct server_context {

common_chat_templates_ptr chat_templates;

server_context() : batch({}) {
}
~server_context() {
mtmd_free(mctx);

Expand Down
0