From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by bl2.djc.id.au (Postfix, from userid 1000) id 80EA62CA78F; Sat, 07 Nov 2026 19:53:27 +1100 (AEDT) Date: Sat, 07 Nov 2026 19:53:30 +1100 To: sup-commits@supmua.dev Subject: [ncursesw-ruby.git] 03/06: fix leaked rb_fdset in every iteration of getch() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Reply-To: Dan Callaghan In-Reply-To: <179404160709.118121.923149093806097164@bl2.djc.id.au> References: <179404160709.118121.923149093806097164@bl2.djc.id.au> Thread-Index: AQAAEjRWwScN9KkGSxule9y9SuyvqA== X-Git-Host: bl2.djc.id.au X-Git-Repo: ncursesw-ruby.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: ca35e9507af4b86ce90a789bc67d1c94090af704 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.7.dev Auto-Submitted: auto-generated Message-Id: <20261107085327.80EA62CA78F@bl2.djc.id.au> From: Dan Callaghan List-Id: New commit on branch master: https://supmua.dev/git/ncursesw-ruby/commit/ca35e9507af4b86ce90a789bc67d1c94090af704.html commit ca35e9507af4b86ce90a789bc67d1c94090af704 Author: Dan Callaghan AuthorDate: Sat Nov 7 18:16:02 2026 +1100 fix leaked rb_fdset in every iteration of getch() --- ncurses_wrap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ncurses_wrap.c b/ncurses_wrap.c index 0773bc0..88bc709 100644 --- a/ncurses_wrap.c +++ b/ncurses_wrap.c @@ -913,6 +913,7 @@ static int rbncurshelper_do_wgetch_functor (WINDOW *c_win, wgetch_func _wgetch_f #else rb_thread_fd_select(infd + 1, rfds, NULL, NULL, &tv); #endif + rb_fd_term(rfds); #else #if HAVE_CLOCK_GETTIME