Issue #9746 has been reported by Terence Lee.

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

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



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