]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
gguf : fix resource leaks (#6061)
authorSteve Grubb <redacted>
Thu, 14 Mar 2024 18:29:32 +0000 (14:29 -0400)
committerGitHub <redacted>
Thu, 14 Mar 2024 18:29:32 +0000 (20:29 +0200)
commit6e0438da3cc95b89cdbf55f45fa4e324d9076792
tree82e2e752df7c50b24aba8459e935ac83309214fb
parent727107707a73b3dc8a497cf9fc9405722c16dd2b
gguf : fix resource leaks (#6061)

There several places where a gguf context is allocated. A call to gguf_free
is missing in some error paths. Also on linux, llama-bench was missing a
fclose.
examples/gguf/gguf.cpp
examples/llama-bench/llama-bench.cpp
examples/llava/clip.cpp
examples/train-text-from-scratch/train-text-from-scratch.cpp