diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-12 13:11:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-12 13:11:11 +0000 |
commit | 2f3b28c682fe3010ed3b8803199616c12b52512d (patch) | |
tree | 8d902a2523cb232f24e07acfceb7edd3af86cd52 /internal.h | |
parent | be711df831c907551429345a91b1a07ff90be738 (diff) | |
download | ruby-2f3b28c682fe3010ed3b8803199616c12b52512d.tar.gz |
string.c: clear env self in symbol proc
* string.c (sym_to_proc), proc.c (rb_block_clear_env_self): clear
caller's self which is useless, so that it can get collected.
[Fixes GH-592]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 6c2951fa18..5890fdb959 100644 --- a/internal.h +++ b/internal.h @@ -758,6 +758,7 @@ ID rb_id_attrget(ID id); VALUE rb_proc_location(VALUE self); st_index_t rb_hash_proc(st_index_t hash, VALUE proc); int rb_block_arity(void); +VALUE rb_block_clear_env_self(VALUE proc); /* process.c */ #define RB_MAX_GROUPS (65536) |