summaryrefslogtreecommitdiff
path: root/io_buffer.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2023-12-14 14:15:17 -0500
committerPeter Zhu <[email protected]>2023-12-19 09:13:20 -0500
commit8e6f63df47089361f7988176bb22ed3c96ecf95a (patch)
tree831176adb3dc8b3d53e9ab6d3aa7aba15193a8bc /io_buffer.c
parent1822acdf336d53a2c143b29583c3ca21a9a224f4 (diff)
Implement IO::Buffer on VWA
Diffstat (limited to 'io_buffer.c')
-rw-r--r--io_buffer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/io_buffer.c b/io_buffer.c
index 79f686422d..b7bd243398 100644
--- a/io_buffer.c
+++ b/io_buffer.c
@@ -261,8 +261,6 @@ rb_io_buffer_type_free(void *_buffer)
struct rb_io_buffer *buffer = _buffer;
io_buffer_free(buffer);
-
- xfree(buffer);
}
size_t
@@ -286,7 +284,7 @@ static const rb_data_type_t rb_io_buffer_type = {
.dsize = rb_io_buffer_type_size,
},
.data = NULL,
- .flags = RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED,
+ .flags = RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_EMBEDDABLE,
};
// Extract an offset argument, which must be a positive integer.