mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[REISERFS] Don't leak on failure
CID 1363597
This commit is contained in:
parent
2df125472b
commit
5c5d20e50c
1 changed files with 8 additions and 0 deletions
|
@ -246,6 +246,10 @@ RfsdReadWriteBlocks(
|
||||||
|
|
||||||
if (!Irp) {
|
if (!Irp) {
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
ExFreePool(pContext);
|
||||||
|
pContext = NULL;
|
||||||
|
#endif
|
||||||
_SEH2_LEAVE;
|
_SEH2_LEAVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -258,6 +262,10 @@ RfsdReadWriteBlocks(
|
||||||
|
|
||||||
if (!Mdl) {
|
if (!Mdl) {
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
ExFreePool(pContext);
|
||||||
|
pContext = NULL;
|
||||||
|
#endif
|
||||||
_SEH2_LEAVE;
|
_SEH2_LEAVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue