summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/npc.c b/npc.c
index 891ec90..9129864 100644
--- a/npc.c
+++ b/npc.c
@@ -226,6 +226,7 @@ static int execute_prompt_with_context(const ModelConfig *cfg, const char *promp
free(prompt_tokens);
free(system_prefix);
free(out);
+
llama_sampler_free(smpl);
llama_free(ctx);
llama_model_free(model);