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:
6d95c53
)
Fixed a memory leakage in DeleteFileW.
author
Hartmut Birr
<osexpert@googlemail.com>
Sat, 27 Apr 2002 19:13:41 +0000
(19:13 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Sat, 27 Apr 2002 19:13:41 +0000
(19:13 +0000)
svn path=/trunk/; revision=2876
reactos/lib/kernel32/file/delete.c
patch
|
blob
|
history
diff --git
a/reactos/lib/kernel32/file/delete.c
b/reactos/lib/kernel32/file/delete.c
index
8248686
..
ebd8a76
100644
(file)
--- a/
reactos/lib/kernel32/file/delete.c
+++ b/
reactos/lib/kernel32/file/delete.c
@@
-1,4
+1,4
@@
-/* $Id: delete.c,v 1.
9 2001/08/14 20:50:47
hbirr Exp $
+/* $Id: delete.c,v 1.
10 2002/04/27 19:13:41
hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@@
-93,10
+93,12
@@
DeleteFileW (
FILE_ATTRIBUTE_NORMAL,
0,
FILE_OPEN,
- FILE_NON_DIRECTORY_FILE,
+
FILE_NON_DIRECTORY_FILE,
NULL,
0);
+ RtlFreeUnicodeString(&NtPathU);
+
if (!NT_SUCCESS(Status))
{
CHECKPOINT;