tool/ex/tests: consistently free ctx, then model (#18168)
This commit is contained in:
parent
e1f15b454f
commit
147a521636
8 changed files with 48 additions and 19 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue