metal : free allocations

This commit is contained in:
Georgi Gerganov 2024-01-06 16:21:28 +02:00
parent 05f808cc83
commit fef1dbf2eb
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -309,6 +309,9 @@ struct ggml_metal_context * ggml_metal_init(int n_cb) {
//[options setFastMathEnabled:false];
ctx->library = [ctx->device newLibraryWithSource:src options:options error:&error];
[options release];
[prep release];
}
if (error) {