From: Pierre Schweitzer Date: Mon, 27 Oct 2014 13:39:03 +0000 (+0000) Subject: [FASTFAT] X-Git-Tag: backups/tcpip_revolution@71025~217 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=af8bee9d61e0a82689254d672d3cdf34931bce28 [FASTFAT] Don't leak reference in case of share access failure. svn path=/trunk/; revision=65043 --- diff --git a/reactos/drivers/filesystems/fastfat/create.c b/reactos/drivers/filesystems/fastfat/create.c index fb4261b99b7..ffe23bc4edb 100644 --- a/reactos/drivers/filesystems/fastfat/create.c +++ b/reactos/drivers/filesystems/fastfat/create.c @@ -443,9 +443,9 @@ VfatCreateFile( PVFATFCB pFcb = NULL; PVFATFCB ParentFcb = NULL; PWCHAR c, last; - BOOLEAN PagingFileCreate = FALSE; + BOOLEAN PagingFileCreate; BOOLEAN Dots; - BOOLEAN OpenTargetDir = FALSE; + BOOLEAN OpenTargetDir; UNICODE_STRING FileNameU; UNICODE_STRING PathNameU; ULONG Attributes; @@ -633,6 +633,7 @@ VfatCreateFile( FALSE); if (!NT_SUCCESS(Status)) { + vfatReleaseFCB(DeviceExt, ParentFcb); VfatCloseFile(DeviceExt, FileObject); return Status; }