mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +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
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue