mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 21:48:19 +00:00
[NTFS] Rewrite ReleaseAttributeContext() so that its null checks are consistent
CID 1427067
This commit is contained in:
parent
007d3d382a
commit
849fa7fbae
1 changed files with 6 additions and 4 deletions
|
@ -105,13 +105,15 @@ PrepareAttributeContext(PNTFS_ATTR_RECORD AttrRecord)
|
||||||
VOID
|
VOID
|
||||||
ReleaseAttributeContext(PNTFS_ATTR_CONTEXT Context)
|
ReleaseAttributeContext(PNTFS_ATTR_CONTEXT Context)
|
||||||
{
|
{
|
||||||
|
if (Context->pRecord)
|
||||||
|
{
|
||||||
if (Context->pRecord->IsNonResident)
|
if (Context->pRecord->IsNonResident)
|
||||||
{
|
{
|
||||||
FsRtlUninitializeLargeMcb(&Context->DataRunsMCB);
|
FsRtlUninitializeLargeMcb(&Context->DataRunsMCB);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Context->pRecord)
|
|
||||||
ExFreePoolWithTag(Context->pRecord, TAG_NTFS);
|
ExFreePoolWithTag(Context->pRecord, TAG_NTFS);
|
||||||
|
}
|
||||||
|
|
||||||
ExFreePoolWithTag(Context, TAG_NTFS);
|
ExFreePoolWithTag(Context, TAG_NTFS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue