Signed-off-by: Zebediah Figura zfigura@codeweavers.com --- server/sock.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/server/sock.c b/server/sock.c index 9cc634d3771..42f73e52fa2 100644 --- a/server/sock.c +++ b/server/sock.c @@ -796,6 +796,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 ); }
@@ -850,6 +851,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 )