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); }