mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
![]() - Manage the lifetime of the temporary 'PartitionBuffer' buffer where it is locally used only, and free it as soon as possible, just after calculating the sector checksum. No need to then free it outside of the main for-loop. - When the 'DriveLayout' buffer is freed, ensure the pointer is NULL-ed (and assert this at the top of the main for-loop), since it can also be freed at cleanup outside this for-loop, and in this case a NULL check is performed. This will avoid the scenario of possibly double-freeing a pointer, in the case the 'DriveLayout' was previously freed (when e.g. reading the sector for checksum calculation failed), then the for-loop goes to the next disk and stops early. |
||
---|---|---|
.. | ||
adapter.c | ||
arcname.c | ||
bootlog.c | ||
controller.c | ||
device.c | ||
deviface.c | ||
driver.c | ||
error.c | ||
file.c | ||
iocomp.c | ||
ioevent.c | ||
iofunc.c | ||
iomdl.c | ||
iomgr.c | ||
iorsrce.c | ||
iotimer.c | ||
iowork.c | ||
irp.c | ||
irq.c | ||
ramdisk.c | ||
rawfs.c | ||
remlock.c | ||
symlink.c | ||
util.c | ||
volume.c |