Close raw odd handle in GMPartitionsState constructor

This commit is contained in:
Maschell 2022-08-02 10:15:05 +02:00
parent 2d2267807b
commit c8a687950f

View File

@ -36,6 +36,10 @@ GMPartitionsDumperState::GMPartitionsDumperState(eDumpTarget pTargetDevice) : ta
}
GMPartitionsDumperState::~GMPartitionsDumperState() {
if (this->oddFd != -1) {
FSAEx_RawClose(__wut_devoptab_fs_client, this->oddFd);
this->oddFd = -1;
}
free(this->sectorBuf);
this->sectorBuf = nullptr;
free(this->readBuffer);