From a757aa142b81d604e8715dcc54fa111ea9cd5c91 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 27 Dec 2016 07:39:29 +0000 Subject: [PATCH] io.c: use io_close to close ARGF git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index 37b57e019b..4a205e533f 100644 --- a/io.c +++ b/io.c @@ -7986,7 +7986,7 @@ argf_close(VALUE argf) if (RB_TYPE_P(file, T_FILE)) { rb_io_set_write_io(file, Qnil); } - rb_funcall3(file, rb_intern("close"), 0, 0); + io_close(file); ARGF.init_p = -1; }