mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	tests : free llama context at the end of the test
This commit is contained in:
		| @@ -129,13 +129,14 @@ if (LLAMA_ALL_WARNINGS) | |||||||
|             -Wshadow |             -Wshadow | ||||||
|             -Wstrict-prototypes |             -Wstrict-prototypes | ||||||
|             -Wpointer-arith |             -Wpointer-arith | ||||||
|  |             -Wno-unused-function | ||||||
|         ) |         ) | ||||||
|         set(cxx_flags |         set(cxx_flags | ||||||
|             -Wall |             -Wall | ||||||
|             -Wextra |             -Wextra | ||||||
|             -Wpedantic |             -Wpedantic | ||||||
|             -Wcast-qual |             -Wcast-qual | ||||||
|             -Wdouble-promotion |             -Wno-unused-function | ||||||
|         ) |         ) | ||||||
|     else() |     else() | ||||||
|         # todo : msvc |         # todo : msvc | ||||||
|   | |||||||
| @@ -77,5 +77,7 @@ int main(int argc, char **argv) { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     llama_free(ctx); | ||||||
|  |  | ||||||
|     return 0; |     return 0; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Georgi Gerganov
					Georgi Gerganov