Pierre Schweitzer : kernel32: Fix memory leak.

Alexandre Julliard julliard at winehq.org
Wed Dec 7 13:57:13 CST 2011


Module: wine
Branch: master
Commit: d5642a47ed6a80537011d15e4a987c8b982c3787
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d5642a47ed6a80537011d15e4a987c8b982c3787

Author: Pierre Schweitzer <pierre at reactos.org>
Date:   Tue Dec  6 21:51:45 2011 +0100

kernel32: Fix memory leak.

---

 dlls/kernel32/sync.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/sync.c b/dlls/kernel32/sync.c
index 9630258..7d5d45c 100644
--- a/dlls/kernel32/sync.c
+++ b/dlls/kernel32/sync.c
@@ -1529,6 +1529,8 @@ BOOL WINAPI WaitNamedPipeW (LPCWSTR name, DWORD nTimeOut)
                          FILE_SYNCHRONOUS_IO_NONALERT);
     if (status != ERROR_SUCCESS)
     {
+        HeapFree( GetProcessHeap(), 0, pipe_wait);
+        RtlFreeUnicodeString( &nt_name );
         SetLastError( ERROR_PATH_NOT_FOUND );
         return FALSE;
     }




More information about the wine-cvs mailing list