From 5c5d20e50cd10a5386e9e7999d88f5b50a0d7274 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 22 Oct 2017 22:51:02 +0200 Subject: [PATCH] [REISERFS] Don't leak on failure CID 1363597 --- drivers/filesystems/reiserfs/src/blockio.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/filesystems/reiserfs/src/blockio.c b/drivers/filesystems/reiserfs/src/blockio.c index 4762ab62c47..befe4136a56 100644 --- a/drivers/filesystems/reiserfs/src/blockio.c +++ b/drivers/filesystems/reiserfs/src/blockio.c @@ -246,6 +246,10 @@ RfsdReadWriteBlocks( if (!Irp) { Status = STATUS_INSUFFICIENT_RESOURCES; +#ifdef __REACTOS__ + ExFreePool(pContext); + pContext = NULL; +#endif _SEH2_LEAVE; } @@ -258,6 +262,10 @@ RfsdReadWriteBlocks( if (!Mdl) { Status = STATUS_INSUFFICIENT_RESOURCES; +#ifdef __REACTOS__ + ExFreePool(pContext); + pContext = NULL; +#endif _SEH2_LEAVE; }