mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 17:32:32 +00:00
[NTFS]
Fix two memory leaks svn path=/trunk/; revision=68830
This commit is contained in:
parent
74ed7ffd30
commit
81ce5cdc50
1 changed files with 10 additions and 0 deletions
|
@ -352,6 +352,11 @@ NtfsGetVolumeData(PDEVICE_OBJECT DeviceObject,
|
|||
VolumeNameU = L"\0";
|
||||
}
|
||||
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
ReleaseAttributeContext(AttrCtxt);
|
||||
}
|
||||
|
||||
VolumeFcb = NtfsCreateFCB(VolumeNameU, NULL, DeviceExt);
|
||||
if (VolumeFcb == NULL)
|
||||
{
|
||||
|
@ -382,6 +387,11 @@ NtfsGetVolumeData(PDEVICE_OBJECT DeviceObject,
|
|||
NtfsInfo->Flags = VolumeInfo->Flags;
|
||||
}
|
||||
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
ReleaseAttributeContext(AttrCtxt);
|
||||
}
|
||||
|
||||
ExFreePool(VolumeRecord);
|
||||
|
||||
NtfsInfo->MftZoneReservation = NtfsQueryMftZoneReservation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue