diff --git a/ggml-metal.m b/ggml-metal.m index 04b349f80..9ac640061 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -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) {