mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-06 11:00:48 +00:00
Initialize these to nullptr to prevent double deletion when a model fails to load.
This commit is contained in:
@@ -833,6 +833,7 @@ struct GPTJPrivate {
|
||||
GPTJ::GPTJ()
|
||||
: d_ptr(new GPTJPrivate) {
|
||||
d_ptr->model = new gptj_model;
|
||||
d_ptr->model->ctx = nullptr;
|
||||
d_ptr->modelLoaded = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user