summaryrefslogtreecommitdiff
path: root/ext/psych/psych_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych/psych_parser.c')
-rw-r--r--ext/psych/psych_parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/psych/psych_parser.c b/ext/psych/psych_parser.c
index 6b72195625..faae460dd0 100644
--- a/ext/psych/psych_parser.c
+++ b/ext/psych/psych_parser.c
@@ -62,7 +62,9 @@ static const rb_data_type_t psych_parser_type = {
"Psych/parser",
{0, dealloc, 0,},
0, 0,
+#ifdef RUBY_TYPED_FREE_IMMEDIATELY
RUBY_TYPED_FREE_IMMEDIATELY,
+#endif
};
static VALUE allocate(VALUE klass)