diff --git a/examples/llama-bench/llama-bench.cpp b/examples/llama-bench/llama-bench.cpp index a04115c96..69fa7c1ee 100644 --- a/examples/llama-bench/llama-bench.cpp +++ b/examples/llama-bench/llama-bench.cpp @@ -96,6 +96,9 @@ static std::string get_cpu_info() { } } } + if (0 != fclose(f)) { + fprintf(stderr, "could not close reader of /proc/cpuinfo\n"); + } } #endif // TODO: other platforms