kernel32: Fix memory leak.

This commit is contained in:
Pierre Schweitzer 2011-12-06 21:51:45 +01:00 committed by Alexandre Julliard
parent 0eec6b5de0
commit d5642a47ed

View file

@ -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;
}