kernel32: Fix memory leak.
This commit is contained in:
parent
0eec6b5de0
commit
d5642a47ed
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue