]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
tools : fix uninitialized llama_batch in server (#13436)
authorAnthony Umfer <redacted>
Sun, 11 May 2025 15:08:26 +0000 (11:08 -0400)
committerGitHub <redacted>
Sun, 11 May 2025 15:08:26 +0000 (17:08 +0200)
commit9a390c4829cd3058d26a2e2c09d16e3fd12bf1b1
tree2d0c11ce7fe339d609f81b35868545afb6b84b3a
parent09232370fc6426aa5dd9be01a8271b9c28f5af3a
tools : fix uninitialized llama_batch in server (#13436)

* add constructor to initialize server_context::batch, preventing destructor's call to llama_batch_free from causing an invalid free()

* Update tools/server/server.cpp

Co-authored-by: Xuan-Son Nguyen <redacted>
* use C++11 initializer syntax

* switch from Copy-list-initialization to Direct-list-initialization

---------

Co-authored-by: Xuan-Son Nguyen <redacted>
tools/server/server.cpp