tests : free llama context at the end of the test

This commit is contained in:
Georgi Gerganov 2023-03-28 19:51:55 +03:00
parent 436e561931
commit d502bc7c9d
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -77,5 +77,7 @@ int main(int argc, char **argv) {
}
}
llama_free(ctx);
return 0;
}