mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 14:24:26 +00:00
server: Fix possible leak of root object in create_named_pipe handler.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
240d8ed7e9
commit
20651c7dfe
|
@ -901,6 +901,7 @@ DECL_HANDLER(create_named_pipe)
|
|||
if (!req->sharing || (req->sharing & ~(FILE_SHARE_READ | FILE_SHARE_WRITE)) ||
|
||||
(!(req->flags & NAMED_PIPE_MESSAGE_STREAM_WRITE) && (req->flags & NAMED_PIPE_MESSAGE_STREAM_READ)))
|
||||
{
|
||||
if (root) release_object( root );
|
||||
set_error( STATUS_INVALID_PARAMETER );
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue