From c1833eded7ad06595882ea02c3559258cf6989cf Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 21 Jan 2025 18:09:50 -0500 Subject: [PATCH] [ncneofetch] close /proc/cpuinfo once done with it --- doc/release-checklist.md | 2 +- src/fetch/main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/release-checklist.md b/doc/release-checklist.md index 2384b61d4..7d1757dc9 100644 --- a/doc/release-checklist.md +++ b/doc/release-checklist.md @@ -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 diff --git a/src/fetch/main.c b/src/fetch/main.c index 66e1ca803..3f9c5b92a 100644 --- a/src/fetch/main.c +++ b/src/fetch/main.c @@ -209,6 +209,7 @@ fetch_cpu_info(fetched_info* fi){ #undef TAG #undef CORE } + fclose(cpuinfo); return 0; }