We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2759916 commit 92e54fbCopy full SHA for 92e54fb
common/speculative.cpp
@@ -62,6 +62,10 @@ struct common_speculative * common_speculative_init(
62
}
63
64
void common_speculative_free(struct common_speculative * spec) {
65
+ if (spec == nullptr) {
66
+ return;
67
+ }
68
+
69
common_sampler_free(spec->smpl);
70
71
llama_batch_free(spec->batch);
examples/server/server.cpp
@@ -120,7 +120,7 @@ struct server_slot {
120
int id;
121
int id_task = -1;
122
123
- llama_batch batch_spec;
+ llama_batch batch_spec = {};
124
125
llama_context * ctx_dft = nullptr;
126
0 commit comments