Gbp-Pq: Name upstream_8b4b5c86_Fix-a-memory-leak-by-actually-freeing-a-correct-pointer.patch
result.append(device);
}
}
-
+
}
VolumeManagerDevice::scanDevices(result); // scan all types of VolumeManagerDevices
Partition *partition = scanPartition(d, partitionNode, firstSector, lastSector, QString(), false);
if (partition->fileSystem().type() == FileSystem::Type::Unknown) {
- setPartitionTableForDevice(d, nullptr);
delete d.partitionTable();
+ setPartitionTableForDevice(d, nullptr);
}
if (!partition->roles().has(PartitionRole::Luks))