summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-16 05:58:13 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-16 05:58:13 +0000
commitdd52ab5a952190bd43f3a90270cdf52c8bb41dee (patch)
tree6f37e17612143479ac4506f065925615557dce2e /symbol.c
parent81f257aa10cce69cf2bee38f955f7c22c18e93e1 (diff)
merge revision(s) 49090: [Backport #10686]
* symbol.c (rb_gc_free_dsymbol): delete from global fstr hash * test/ruby/test_symbol.rb (test_symbol_fstr_leak): test for bug [ruby-core:67268] [Bug #10686] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index f067ebe3f9..1127020d17 100644
--- a/symbol.c
+++ b/symbol.c
@@ -664,6 +664,7 @@ rb_gc_free_dsymbol(VALUE sym)
if (str) {
RSYMBOL(sym)->fstr = 0;
unregister_sym(str, sym);
+ rb_hash_delete_entry(global_symbols.dsymbol_fstr_hash, str);
}
}