mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
340d73b2b1
commit
5ab146166e
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Aug 12 10:10:42 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* vm_method.c (release_method_definition): use rb_free_method_entry
|
||||
|
||||
Tue Aug 12 06:16:09 2014 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c: seperate WIN32OLE_METHOD src from
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue