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 a507932 commit 2911db5Copy full SHA for 2911db5
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
@@ -720,7 +720,7 @@ struct server_slot {
720
int id;
721
int id_task = -1;
722
723
- llama_batch batch_spec;
+ llama_batch batch_spec = {};
724
725
llama_context * ctx_dft = nullptr;
726
0 commit comments