diff --git a/io_uring/eventfd.c b/io_uring/eventfd.c index b9384503a2b752ec132347d594c060a41877875f..d9836d43725fdd1a70a2f74dd0205cec0ab5f753 100644 --- a/io_uring/eventfd.c +++ b/io_uring/eventfd.c @@ -126,6 +126,7 @@ int io_eventfd_register(struct io_ring_ctx *ctx, void __user *arg, ev_fd->cq_ev_fd = eventfd_ctx_fdget(fd); if (IS_ERR(ev_fd->cq_ev_fd)) { int ret = PTR_ERR(ev_fd->cq_ev_fd); + kfree(ev_fd); return ret; }