Revert "Unchecked popen/pclose Return Values"

This reverts commit bcabad0620.
This commit is contained in:
2025-12-07 18:52:10 +01:00
parent bcabad0620
commit eded3f166c

View File

@ -405,7 +405,6 @@ void reHDD::filterIgnoredDrives(list<Drive> *plistDrives)
FILE *outputfileBlkid = popen(sCMD.c_str(), "r"); // get UUID from drive FILE *outputfileBlkid = popen(sCMD.c_str(), "r"); // get UUID from drive
if (outputfileBlkid == NULL) if (outputfileBlkid == NULL)
{ {
pclose(outputfileBlkid);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
@ -685,7 +684,6 @@ bool reHDD::getSystemDrive(string &systemDrive)
if (outputfileHwinfo == NULL) if (outputfileHwinfo == NULL)
{ {
Logger::logThis()->error("Unable to scan attached drives for system drive"); Logger::logThis()->error("Unable to scan attached drives for system drive");
pclose(outputfileHwinfo);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }