bugfix/ai-static-analysis #82

Open
localhorst wants to merge 15 commits from bugfix/ai-static-analysis into master
2 changed files with 18 additions and 15 deletions
Showing only changes of commit bcabad0620 - Show all commits

View File

@ -405,6 +405,7 @@ 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);
} }
@ -684,6 +685,7 @@ 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);
} }