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