Issue #9745 has been reported by Terence Lee.

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

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



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