[ncneofetch] close /proc/cpuinfo once done with it

This commit is contained in:
nick black 2025-01-21 18:09:50 -05:00
parent 8c02c30d6a
commit c1833eded7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
* Review the testing checklist (doc/testing-checklist.md)
* clang-tidy check with something like:
* `cmake "-DCMAKE_CXX_CLANG_TIDY=/usr/bin/clang-tidy-15\;-checks=-*,clang-analyzer-*,modernize-*,performance-*" ..`
* `cmake "-DCMAKE_CXX_CLANG_TIDY=/usr/bin/clang-tidy\;-checks=-*,clang-analyzer-*,modernize-*,performance-*" ..`
or
* `scan-build cmake .. && scan-build make`
* Verify that rust + python compile

View File

@ -209,6 +209,7 @@ fetch_cpu_info(fetched_info* fi){
#undef TAG
#undef CORE
}
fclose(cpuinfo);
return 0;
}