mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
Fixed a memory leakage in CreateFileW.
svn path=/trunk/; revision=2875
This commit is contained in:
parent
e2ccc04cc8
commit
6d95c53a84
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: create.c,v 1.22 2001/09/09 12:21:37 hbirr Exp $
|
||||
/* $Id: create.c,v 1.23 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);
|
||||
|
|
Loading…
Reference in a new issue