mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +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 */
|
/* Free the buffer and check for success */
|
||||||
if (Buffer) ExFreePoolWithTag(Buffer, TAG_FILE_SYSTEM);
|
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 */
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Reference in a new issue