From fef1dbf2eb0fb9d6818298a367251ffcacc9daf7 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 6 Jan 2024 16:21:28 +0200 Subject: [PATCH] metal : free allocations --- ggml-metal.m | 3 +++ 1 file changed, 3 insertions(+) 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) {