diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-01-05 11:37:40 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-01-05 11:39:35 +0900 |
commit | 5b0c3754d8578564e12df7182fff4a36b0a29938 (patch) | |
tree | 3ff30dce1661e967d7517bb0bcd91e0b03cc89e8 /parse.y | |
parent | 44a164c26f5371519636585d8ba7aa59f489442e (diff) | |
download | ruby-5b0c3754d8578564e12df7182fff4a36b0a29938.tar.gz |
parse.y: fix a wrong sizeof argument for ruby_sized_xfree
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |