diff options
author | Peter Zhu <[email protected]> | 2024-01-17 10:08:00 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-01-17 11:35:30 -0500 |
commit | 947194aacb3b82602eab63b92fbe5876f10c5640 (patch) | |
tree | 72db6f95a7cdad176242afacdfdc9c12a26d4edd /ext/openssl/ossl_ssl.c | |
parent | 78ad91f83f1c16318b2d3e5920c6ad98f88a4955 (diff) |
[PRISM] Fix memory leak of ST table
This commit fixes a memory leak in rb_translate_prism because the ST
table is never freed. There are still more memory leaks which still need
to be fixed.
For example:
10.times do
100_000.times do
RubyVM::InstructionSequence.compile_prism("")
end
puts `ps -o rss= -p #{$$}`
end
Before:
34544
57120
79360
102176
123712
146320
168192
190592
212192
234896
After:
18336
24592
31488
37648
44592
50944
57280
63632
69904
76160
Diffstat (limited to 'ext/openssl/ossl_ssl.c')
0 files changed, 0 insertions, 0 deletions