mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	metal : fix minor string leaks (ggml/1004)
This commit is contained in:
		 Plamen Minev
					Plamen Minev
				
			
				
					committed by
					
						 Georgi Gerganov
						Georgi Gerganov
					
				
			
			
				
	
			
			
			 Georgi Gerganov
						Georgi Gerganov
					
				
			
						parent
						
							9f40989351
						
					
				
				
					commit
					e2292aaa17
				
			| @@ -450,7 +450,14 @@ static struct ggml_backend_metal_context * ggml_metal_init(ggml_backend_dev_t de | ||||
|                     GGML_LOG_ERROR("%s: error: %s\n", __func__, [[error description] UTF8String]); | ||||
|                     return NULL; | ||||
|                 } | ||||
|  | ||||
| #if !__has_feature(objc_arc) | ||||
|                 [options release]; | ||||
| #endif | ||||
|             } | ||||
| #if GGML_METAL_EMBED_LIBRARY | ||||
|             [src release]; | ||||
| #endif // GGML_METAL_EMBED_LIBRARY | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user