diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-08-09 10:57:01 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-08-12 09:33:20 -0400 |
| commit | 568d7ab7f5862063107b3643c6cfe77a387f09d6 (patch) | |
| tree | 8cc430d5c41ae9c0682a47538787b7a5a1924b3f /include/ruby/assert.h | |
| parent | 992596fb7af18a7f472589a607d0eb3fbb03b49a (diff) | |
Fix memory leak reported in -test-/random/loop.c
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11354
Diffstat (limited to 'include/ruby/assert.h')
0 files changed, 0 insertions, 0 deletions
