summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/proc.c b/proc.c
index f25fd77add..a43c798a84 100644
--- a/proc.c
+++ b/proc.c
@@ -1194,12 +1194,6 @@ bm_mark(void *ptr)
rb_gc_mark((VALUE)data->me);
}
-static void
-bm_free(void *ptr)
-{
- xfree(ptr);
-}
-
static size_t
bm_memsize(const void *ptr)
{
@@ -1210,7 +1204,7 @@ static const rb_data_type_t method_data_type = {
"method",
{
bm_mark,
- bm_free,
+ RUBY_TYPED_DEFAULT_FREE,
bm_memsize,
},
0, 0, RUBY_TYPED_FREE_IMMEDIATELY