mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parse.y: fix a wrong sizeof argument for ruby_sized_xfree
This commit is contained in:
parent
44a164c26f
commit
5b0c3754d8
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
@ -5854,7 +5854,7 @@ vtable_free_gen(struct parser_params *p, int line, const char *name,
|
|||
if (tbl->tbl) {
|
||||
ruby_sized_xfree(tbl->tbl, tbl->capa * sizeof(ID));
|
||||
}
|
||||
ruby_sized_xfree(tbl, sizeof(tbl));
|
||||
ruby_sized_xfree(tbl, sizeof(*tbl));
|
||||
}
|
||||
}
|
||||
#define vtable_free(tbl) vtable_free_gen(p, __LINE__, #tbl, tbl)
|
||||
|
|
Loading…
Reference in a new issue