Eric Pouech : ntdll: Plug a memory leak.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 17 06:12:24 CDT 2006
Module: wine
Branch: master
Commit: 449e8557fdb451ea411c8006d2b38d1e3802b526
URL: http://source.winehq.org/git/wine.git/?a=commit;h=449e8557fdb451ea411c8006d2b38d1e3802b526
Author: Eric Pouech <eric.pouech at wanadoo.fr>
Date: Mon Oct 16 21:54:03 2006 +0200
ntdll: Plug a memory leak.
---
dlls/ntdll/directory.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index 29541af..45b38b8 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -1698,7 +1698,10 @@ NTSTATUS wine_nt_to_unix_file_name( cons
{
/* creation fails with STATUS_ACCESS_DENIED for the root of the drive */
if (disposition == FILE_CREATE)
+ {
+ RtlFreeHeap( GetProcessHeap(), 0, unix_name );
return name_len ? STATUS_OBJECT_NAME_COLLISION : STATUS_ACCESS_DENIED;
+ }
goto done;
}
}
More information about the wine-cvs
mailing list