diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-12 01:17:17 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-12 01:17:17 +0000 |
commit | 5ab146166e7933464c41b254fe2d855bdafaf9b2 (patch) | |
tree | 75c2c7a11bb9c9ddb25b541d9f5805a4a94abb7d /vm_method.c | |
parent | 340d73b2b1ddd471bc0ed86d48fbbb83522fcde3 (diff) | |
download | ruby-5ab146166e7933464c41b254fe2d855bdafaf9b2.tar.gz |
vm_method.c (release_method_definition): use rb_free_method_entry
We are not currently avoiding recursion by calling
release_method_definition, so use rb_free_method_entry directly
to make changing code easier in case we change the way
rb_method_entry_t is allocated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c index 050f5f7248..74dafab3f6 100644 --- a/vm_method.c +++ b/vm_method.c @@ -176,8 +176,7 @@ release_method_definition(rb_method_definition_t *def) if (def->alias_count == 0) { if (def->type == VM_METHOD_TYPE_REFINED && def->body.orig_me) { - release_method_definition(def->body.orig_me->def); - xfree(def->body.orig_me); + rb_free_method_entry(def->body.orig_me); } xfree(def); } |