Skip to content

Commit

Permalink
Implement IO::Buffer on VWA
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Dec 19, 2023
1 parent 1822acd commit 8e6f63d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions io_buffer.c
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 8e6f63d

Please sign in to comment.