]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml alloc: Fix for null dereference on alloc failure (#5200)
authorPaul Tsochantaris <redacted>
Mon, 29 Jan 2024 22:19:29 +0000 (22:19 +0000)
committerGitHub <redacted>
Mon, 29 Jan 2024 22:19:29 +0000 (23:19 +0100)
commitceebbb5b21b971941b2533210b74bf359981006c
tree14e5eadf42ce837781804bf96943e8711141dc4a
parent6daa69ee81851ab26ca8aefca1a4202941fc0262
ggml alloc: Fix for null dereference on alloc failure (#5200)

* Fix for a null pointer dereference if a metal GGML buffer fails to be allocated

* Freeing the allocated buffers rather than the pointer in ggml-alloc.c

* Fixed the fix of the fix
ggml-alloc.c