Skip to content

Commit

Permalink
Force recycle intermediate array too
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Mar 28, 2021
1 parent d65d90c commit f435edd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -3294,6 +3294,7 @@ rb_hash_transform_keys_bang(int argc, VALUE *argv, VALUE hash)
rb_hash_aset(new_keys, new_key, Qnil);
}
rb_ary_clear(pairs);
rb_gc_force_recycle(pairs);
rb_hash_clear(new_keys);
rb_gc_force_recycle(new_keys);
}
Expand Down

0 comments on commit f435edd

Please sign in to comment.