mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +00:00
[KERNEL32] WaitNamedPipeW: Free Unicode buffer when leaving the function
svn path=/trunk/; revision=47406
This commit is contained in:
parent
c48e118c70
commit
24dd4301ad
1 changed files with 3 additions and 0 deletions
|
@ -496,6 +496,7 @@ WaitNamedPipeW(LPCWSTR lpNamedPipeName,
|
|||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
RtlFreeUnicodeString(&NamedPipeName);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -538,9 +539,11 @@ WaitNamedPipeW(LPCWSTR lpNamedPipeName,
|
|||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
RtlFreeUnicodeString(&NamedPipeName);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
RtlFreeUnicodeString(&NamedPipeName);
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue