[PATCH] variable.c: avoid memory leak on const redefinition
ruby 2.2.0dev (2014-03-16 trunk 45349) [x86_64-linux]
I noticed this leak because I was making constants use ihash from Feature 9614.
I hope nobody is really affected by this leak.
Updated by Anonymous over 7 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r45350.
variable.c: avoid memory leak on const redefinition
- variable.c (rb_const_set): delete existing entry on redefinition [Bug #9645]
- test/ruby/test_const.rb (test_redefinition): test for leak