aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--proc.c8
2 files changed, 6 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b9dee6a94..f45d0730a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Dec 10 04:49:16 2015 Eric Wong <e@80x24.org>
+
+ * proc.c (bm_free): remove, use default free
+ (method_data_type): use RUBY_TYPED_DEFAULT_FREE
+
Thu Dec 10 02:01:41 2015 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each): do not add debug information
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