Fix leak of fd in io_uring_queue_init() on failure

If the ring setup fails, close the fd before returning failure.

Reported-by: Kornilios Kourtis <kkourt@kkourt.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 file changed
tree: 8f7112ec415148635a7b64a5f74fa2a2951ee3f3
  1. examples/
  2. man/
  3. src/
  4. test/
  5. .gitignore
  6. configure
  7. COPYING
  8. liburing.spec
  9. Makefile