mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-07-08 20:20:21 +00:00
use destructor instead
This commit is contained in:
+1
-6
@@ -59,13 +59,8 @@ int llama_cli(int argc, char ** argv) {
|
||||
cli_context ctx_cli(params);
|
||||
|
||||
if (!ctx_cli.init()) {
|
||||
ctx_cli.shutdown();
|
||||
return 1;
|
||||
}
|
||||
|
||||
int ret = ctx_cli.run();
|
||||
|
||||
ctx_cli.shutdown();
|
||||
|
||||
return ret;
|
||||
return ctx_cli.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user