Re: [PATCH][for-linus] io_uring: Fix leaked shadow_req

From: Jens Axboe
Date: Sun Oct 27 2019 - 23:29:52 EST


On 10/27/19 1:10 PM, Pavel Begunkov wrote:
> io_queue_link_head() owns shadow_req after taking it as an argument.
> By not freeing it in case of an error, it can leak the request along
> with taken ctx->refs.

Thakns, applied.

--
Jens Axboe