mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:25:45 +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";
|
VolumeNameU = L"\0";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
ReleaseAttributeContext(AttrCtxt);
|
||||||
|
}
|
||||||
|
|
||||||
VolumeFcb = NtfsCreateFCB(VolumeNameU, NULL, DeviceExt);
|
VolumeFcb = NtfsCreateFCB(VolumeNameU, NULL, DeviceExt);
|
||||||
if (VolumeFcb == NULL)
|
if (VolumeFcb == NULL)
|
||||||
{
|
{
|
||||||
|
@ -382,6 +387,11 @@ NtfsGetVolumeData(PDEVICE_OBJECT DeviceObject,
|
||||||
NtfsInfo->Flags = VolumeInfo->Flags;
|
NtfsInfo->Flags = VolumeInfo->Flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
ReleaseAttributeContext(AttrCtxt);
|
||||||
|
}
|
||||||
|
|
||||||
ExFreePool(VolumeRecord);
|
ExFreePool(VolumeRecord);
|
||||||
|
|
||||||
NtfsInfo->MftZoneReservation = NtfsQueryMftZoneReservation();
|
NtfsInfo->MftZoneReservation = NtfsQueryMftZoneReservation();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue