mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[NTOS:FSTUB]
- Make sure to NULL the return pointer in the failure case of xHalIoReadPartitionTable. CORE-8359 svn path=/trunk/; revision=63722
This commit is contained in:
parent
5884949d32
commit
5a8c0d9fc1
|
@ -1787,7 +1787,11 @@ xHalIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
/* Free the buffer and check for success */
|
||||
if (Buffer) ExFreePoolWithTag(Buffer, TAG_FILE_SYSTEM);
|
||||
if (!NT_SUCCESS(Status)) ExFreePoolWithTag(*PartitionBuffer, TAG_FILE_SYSTEM);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ExFreePoolWithTag(*PartitionBuffer, TAG_FILE_SYSTEM);
|
||||
*PartitionBuffer = NULL;
|
||||
}
|
||||
|
||||
/* Return status */
|
||||
return Status;
|
||||
|
|
Loading…
Reference in a new issue