projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9d9cce2
)
[NTFS] Don't leak memory in case of failure while creating a directory
author
Pierre Schweitzer
<pierre@reactos.org>
Sun, 31 Dec 2017 09:27:31 +0000
(10:27 +0100)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sun, 31 Dec 2017 09:38:58 +0000
(10:38 +0100)
CID
1427065
drivers/filesystems/ntfs/create.c
patch
|
blob
|
history
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");
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;
}
ExFreePoolWithTag(FileRecord, TAG_NTFS);
return Status;
}