https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2df125472b5a991a1b8f7…
commit 2df125472b5a991a1b8f7875b815deaf4607ce72
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Oct 22 22:40:21 2017 +0200
[REISERFS] Don't leak on failure
CID 1363593
---
drivers/filesystems/reiserfs/src/create.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/filesystems/reiserfs/src/create.c
b/drivers/filesystems/reiserfs/src/create.c
index 3a879dd78c..d373f7846a 100644
--- a/drivers/filesystems/reiserfs/src/create.c
+++ b/drivers/filesystems/reiserfs/src/create.c
@@ -542,6 +542,9 @@ Dissecting:
}
if(!RfsdLoadInode(Vcb, &(ParentMcb->Key), pTmpInode)) {
+#ifdef __REACTOS__
+ ExFreePool(pTmpInode);
+#endif
Status = STATUS_OBJECT_PATH_NOT_FOUND;
_SEH2_LEAVE;
}