mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[FFS] Don't leak on failure
CID 1363596
This commit is contained in:
parent
34d74fbd17
commit
361664d57f
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue