Commit 567beb6b authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Avoid leaking the poll output buffer if the request is terminated irregularly (Valgrind).

parent 60dd202f
......@@ -795,6 +795,7 @@ static void free_poll_req( void *private )
release_object( req->async );
release_object( req->iosb );
list_remove( &req->entry );
free( req->output );
free( req );
}
......@@ -849,6 +850,7 @@ static void complete_async_poll( struct poll_req *req, unsigned int status )
/* pass 0 as result; client will set actual result size */
async_request_complete( req->async, status, 0, req->count * sizeof(*req->output), req->output );
req->output = NULL;
}
static void complete_async_polls( struct sock *sock, int event, int error )
......
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