Commit 20651c7d authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

server: Fix possible leak of root object in create_named_pipe handler.

parent 240d8ed7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment