[REISERFS] Don't leak on failure

CID 1363597
This commit is contained in:
Pierre Schweitzer 2017-10-22 22:51:02 +02:00
parent 2df125472b
commit 5c5d20e50c

View file

@ -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;
} }