mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[FFS] Don't leak on failure
CID 1363596
This commit is contained in:
@@ -255,6 +255,10 @@ FFSReadWriteBlocks(
|
||||
(CCHAR)(Vcb->TargetDeviceObject->StackSize + 1));
|
||||
if (!Irp)
|
||||
{
|
||||
#ifdef __REACTOS__
|
||||
ExFreePoolWithTag(pContext, FFS_POOL_TAG);
|
||||
pContext = NULL;
|
||||
#endif
|
||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||
_SEH2_LEAVE;
|
||||
}
|
||||
@@ -268,6 +272,10 @@ FFSReadWriteBlocks(
|
||||
|
||||
if (!Mdl)
|
||||
{
|
||||
#ifdef __REACTOS__
|
||||
ExFreePoolWithTag(pContext, FFS_POOL_TAG);
|
||||
pContext = NULL;
|
||||
#endif
|
||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||
_SEH2_LEAVE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user