Resource Leak - File Descriptor Not Checked
This commit is contained in:
@ -313,6 +313,7 @@ void reHDD::searchDrives(std::list<Drive> *plistDrives)
|
||||
if (!fp)
|
||||
{
|
||||
Logger::logThis()->error("Unable to execute lsblk to scan drives");
|
||||
pclose(fp);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user