Skip to content

Commit e6098d7

Browse files
pminevarthw
authored andcommitted
metal : fix minor string leaks (ggml/1004)
1 parent 612599f commit e6098d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ggml/src/ggml-metal.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,14 @@ @implementation GGMLMetalClass
450450
GGML_LOG_ERROR("%s: error: %s\n", __func__, [[error description] UTF8String]);
451451
return NULL;
452452
}
453+
454+
#if !__has_feature(objc_arc)
455+
[options release];
456+
#endif
453457
}
458+
#if GGML_METAL_EMBED_LIBRARY
459+
[src release];
460+
#endif // GGML_METAL_EMBED_LIBRARY
454461
}
455462
}
456463

0 commit comments

Comments
 (0)