From: Georgi Gerganov Date: Tue, 28 Mar 2023 16:51:55 +0000 (+0300) Subject: tests : free llama context at the end of the test X-Git-Tag: gguf-v0.4.0~1078 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d502bc7c9d9d6dfb3a09aea404395b666d7b374d;p=pkg%2Fggml%2Fsources%2Fllama.cpp tests : free llama context at the end of the test --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 241be4c1..d7b0eba2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -129,13 +129,14 @@ if (LLAMA_ALL_WARNINGS) -Wshadow -Wstrict-prototypes -Wpointer-arith + -Wno-unused-function ) set(cxx_flags -Wall -Wextra -Wpedantic -Wcast-qual - -Wdouble-promotion + -Wno-unused-function ) else() # todo : msvc diff --git a/tests/test-tokenizer-0.cpp b/tests/test-tokenizer-0.cpp index 38205532..55b086da 100644 --- a/tests/test-tokenizer-0.cpp +++ b/tests/test-tokenizer-0.cpp @@ -77,5 +77,7 @@ int main(int argc, char **argv) { } } + llama_free(ctx); + return 0; }