Skip to content

Commit 9914014

Browse files
Anontrollkotze
Anon
authored andcommitted
llama_control_vector_load: free contexts on successful exit
1 parent 181879f commit 9914014

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/common.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,6 +2748,9 @@ static llama_control_vector_data llama_control_vector_load_one(const llama_contr
27482748
}
27492749
}
27502750

2751+
gguf_free(ctx_gguf);
2752+
ggml_free(ctx);
2753+
27512754
return result;
27522755
}
27532756

0 commit comments

Comments
 (0)