Resource Leak - File Descriptor Not Checked

This commit is contained in:
2025-12-07 18:47:24 +01:00
parent 2d63788352
commit bc4083a98c

View File

@ -313,6 +313,7 @@ void reHDD::searchDrives(std::list<Drive> *plistDrives)
if (!fp) if (!fp)
{ {
Logger::logThis()->error("Unable to execute lsblk to scan drives"); Logger::logThis()->error("Unable to execute lsblk to scan drives");
pclose(fp);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }