diff --git a/io.c b/io.c index 5d2f4b63e2..4287d96e74 100644 --- a/io.c +++ b/io.c @@ -4427,7 +4427,6 @@ rb_io_close_m(VALUE io) if (fptr->fd < 0) { return Qnil; } - rb_io_check_closed(RFILE(io)->fptr); rb_io_close(io); return Qnil; }