tool/ex/tests: consistently free ctx, then model (#18168)

This commit is contained in:
Johannes Gäßler authored and GitHub committed 2025-12-22 11:00:37 +01:00
1 parent e1f15b454f
commit 147a521636
8 files changed
+48 -19

No files matched your search

+2
View File
@@ -1078,6 +1078,8 @@ struct common_init_result::impl {
impl() = default;
~impl() = default;
// note: the order in which model, context, etc. are declared matters because their destructors will be called bottom-to-top
llama_model_ptr model;
llama_context_ptr context;