summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2024-01-12 07:38:02 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2024-01-12 21:17:41 +0900
commitb35e21b3889e95cf727f2da49abb881c3466bc75 (patch)
tree83905792922f90dfaa48f00282d51f64d4d8844d /parse.y
parent52d9e55903b2e72022ba90079cb23c6f2cd03af5 (diff)
Remove reference counter from rb_parser_config
It's allocated outside of parser then no need to track reference count in rb_parser_config.
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 0 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 23ca4c8ddc..6ebb237181 100644
--- a/parse.y
+++ b/parse.y
@@ -15970,7 +15970,6 @@ rb_ruby_parser_allocate(rb_parser_config_t *config)
/* parser_initialize expects fields to be set to 0 */
rb_parser_t *p = (rb_parser_t *)config->calloc(1, sizeof(rb_parser_t));
p->config = config;
- p->config->counter++;
return p;
}