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:
e2ccc04
)
Fixed a memory leakage in CreateFileW.
author
Hartmut Birr
<osexpert@googlemail.com>
Sat, 27 Apr 2002 19:13:15 +0000
(19:13 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Sat, 27 Apr 2002 19:13:15 +0000
(19:13 +0000)
svn path=/trunk/; revision=2875
reactos/lib/kernel32/file/create.c
patch
|
blob
|
history
diff --git
a/reactos/lib/kernel32/file/create.c
b/reactos/lib/kernel32/file/create.c
index
d549188
..
0835d3b
100644
(file)
--- a/
reactos/lib/kernel32/file/create.c
+++ b/
reactos/lib/kernel32/file/create.c
@@
-1,4
+1,4
@@
-/* $Id: create.c,v 1.2
2 2001/09/09 12:21:37
hbirr Exp $
+/* $Id: create.c,v 1.2
3 2002/04/27 19:13:15
hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@@
-143,6
+143,9
@@
HANDLE STDCALL CreateFileW (LPCWSTR lpFileName,
Flags,
NULL,
0);
+
+ RtlFreeUnicodeString(&NtPathU);
+
if (!NT_SUCCESS(Status))
{
SetLastErrorByStatus (Status);