projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NTFS] Don't leak memory in case of failure while creating a directory
[reactos.git]
/
drivers
/
filesystems
/
ntfs
/
create.c
diff --git
a/drivers/filesystems/ntfs/create.c
b/drivers/filesystems/ntfs/create.c
index
b591b79
..
f37a951
100644
(file)
--- a/
drivers/filesystems/ntfs/create.c
+++ b/
drivers/filesystems/ntfs/create.c
@@
-772,6
+772,7
@@
NtfsCreateDirectory(PDEVICE_EXTENSION DeviceExt,
if (!NT_SUCCESS(Status))
{
DPRINT1("ERROR: Failed to add index root to new file record!\n");
+ ExFreePoolWithTag(NewIndexRoot, TAG_NTFS);
ExFreePoolWithTag(FileRecord, TAG_NTFS);
return Status;
}