summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 13:47:53 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 13:47:53 +0100
commit3145e2d2f565c5da599dd50e9c70b9e9ff3d5965 (patch)
treef96b3f0b0da7ad4fc8d607f51aeb729f66069c68
parent41a93d153628915ed70045ab2d747089b8a8e008 (diff)
downloadllmnpc-3145e2d2f565c5da599dd50e9c70b9e9ff3d5965.tar.gz
Cleanup and refactor
-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);