mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +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))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
SetLastErrorByStatus(Status);
|
SetLastErrorByStatus(Status);
|
||||||
|
RtlFreeUnicodeString(&NamedPipeName);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -538,9 +539,11 @@ WaitNamedPipeW(LPCWSTR lpNamedPipeName,
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
SetLastErrorByStatus(Status);
|
SetLastErrorByStatus(Status);
|
||||||
|
RtlFreeUnicodeString(&NamedPipeName);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RtlFreeUnicodeString(&NamedPipeName);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue