[REISERFS] Don't leak on failure
authorPierre Schweitzer <pierre@reactos.org>
Sun, 22 Oct 2017 20:40:21 +0000 (22:40 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 22 Oct 2017 20:40:21 +0000 (22:40 +0200)
CID 1363593

drivers/filesystems/reiserfs/src/create.c

index 3a879dd..d373f78 100644 (file)
@@ -542,6 +542,9 @@ Dissecting:
                 }
                                
                                if(!RfsdLoadInode(Vcb, &(ParentMcb->Key), pTmpInode)) {
                 }
                                
                                if(!RfsdLoadInode(Vcb, &(ParentMcb->Key), pTmpInode)) {
+#ifdef __REACTOS__
+                    ExFreePool(pTmpInode);
+#endif
                     Status = STATUS_OBJECT_PATH_NOT_FOUND;
                     _SEH2_LEAVE;
                 }
                     Status = STATUS_OBJECT_PATH_NOT_FOUND;
                     _SEH2_LEAVE;
                 }