Skip to content

Commit 58343b1

Browse files
authored
Merge pull request #4 from jmont-dev/memory-leak
Update single-header file with fix for memory leak.
2 parents ed60888 + ac4a3be commit 58343b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: singleheader/ollama.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35164,7 +35164,7 @@ class Ollama
3516435164
}
3516535165

3516635166
Ollama(): Ollama("http://localhost:11434") {}
35167-
~Ollama() {}
35167+
~Ollama() { delete this->cli; }
3516835168

3516935169
// Generate a non-streaming reply as a string.
3517035170
ollama::response generate(const std::string& model,const std::string& prompt, const json& options=nullptr, const std::vector<std::string>& images=std::vector<std::string>())

0 commit comments

Comments
 (0)