SIGN IN SIGN UP

ggml: handle ggml_init failure to fix NULL pointer deref (#8692)

`ggml_init` can fail if no unused context is found. In that case, a NULL-pointer deref will happen later in the code during a call to `ggml_set_on_alloc`.

This fixes it by bailing out if no context is found.
D
DavidKorczynski committed
49ce0ab6d45402e8bb622bf86f86529f2b0ba552
Parent: 4226a8d
Committed by GitHub <noreply@github.com> on 7/25/2024, 9:23:05 PM