mirror of
https://github.com/ruby/ruby.git
synced 2026-08-30 21:50:33 +08:00
RUBY_TYPED_DEFAULT_FREE will only free the rand_loop_t, but it will cause the buf to be leaked. This commit fixes the memory leak by implementing a free function for the rand_loop_t type.