Module: wine Branch: master Commit: 449e8557fdb451ea411c8006d2b38d1e3802b526 URL: http://source.winehq.org/git/wine.git/?a=commit;h=449e8557fdb451ea411c8006d2...
Author: Eric Pouech eric.pouech@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; } }