projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34d74fb
)
[FFS] Don't leak on failure
author
Pierre Schweitzer
<pierre@reactos.org>
Mon, 23 Oct 2017 08:30:27 +0000
(10:30 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Mon, 23 Oct 2017 08:35:21 +0000
(10:35 +0200)
CID
1363596
drivers/filesystems/ffs/src/block.c
patch
|
blob
|
history
diff --git
a/drivers/filesystems/ffs/src/block.c
b/drivers/filesystems/ffs/src/block.c
index
423842f
..
8507695
100644
(file)
--- a/
drivers/filesystems/ffs/src/block.c
+++ b/
drivers/filesystems/ffs/src/block.c
@@
-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;
}