Missing Free for getline Allocated Memory
This commit is contained in:
@ -41,6 +41,8 @@ void Delete::deleteDrive(Drive *drive)
|
||||
{
|
||||
// wipefs running
|
||||
}
|
||||
|
||||
free(cLine);
|
||||
pclose(deleteCmdOutput);
|
||||
}
|
||||
}
|
||||
|
||||
@ -58,6 +58,7 @@ void SMART::readSMARTData(Drive *drive)
|
||||
SMART::parseTemperature(sLine, temperature);
|
||||
}
|
||||
|
||||
free(cLine);
|
||||
pclose(outputfileSmart);
|
||||
|
||||
if (status == 0U)
|
||||
|
||||
Reference in New Issue
Block a user