From bc4083a98c9f50b341bef00e3484bfdc547dc7df Mon Sep 17 00:00:00 2001 From: localhorst Date: Sun, 7 Dec 2025 18:47:24 +0100 Subject: [PATCH] Resource Leak - File Descriptor Not Checked --- src/reHDD.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reHDD.cpp b/src/reHDD.cpp index 2169a07..8083925 100644 --- a/src/reHDD.cpp +++ b/src/reHDD.cpp @@ -313,6 +313,7 @@ void reHDD::searchDrives(std::list *plistDrives) if (!fp) { Logger::logThis()->error("Unable to execute lsblk to scan drives"); + pclose(fp); exit(EXIT_FAILURE); }