commit ca35e9507af4b86ce90a789bc67d1c94090af704
parent 8c9003c9fcb0161c43df034439dba610a1495ac0
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 7 Nov 2026 18:16:02 +1100
fix leaked rb_fdset in every iteration of getch()
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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