Issue #9747 has been reported by Terence Lee.

----------------------------------------
Backport #9747: backport r45595
https://bugs.ruby-lang.org/issues/9747

* Author: Terence Lee
* Status: Open
* Priority: Normal
* Assignee: Usaku NAKAMURA
----------------------------------------
Backport memory leak from [Bug #9743]



-- 
https://bugs.ruby-lang.org/