about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-31 09:10:19 +0000
committerEric Wong <normalperson@yhbt.net>2011-01-31 09:10:19 +0000
commit3bbb5d3d2dbf45d0a6aa66aa39c1733804b82eb7 (patch)
treeb0c0757ee025b638406d81a71eb9fb6716f86ae3
parentf6c7de7a8a62b25c2b23fddbe787d4c880158d3d (diff)
downloadmahoro-3bbb5d3d2dbf45d0a6aa66aa39c1733804b82eb7.tar.gz
use xfree() instead of free() in for GC destructor
This allows Mahoro to run properly under Ruby 1.9 that
is built with CALC_EXACT_MALLOC_SIZE.
-rw-r--r--mahoro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mahoro.c b/mahoro.c
index 2ee9953..49e3e45 100644
--- a/mahoro.c
+++ b/mahoro.c
@@ -22,7 +22,7 @@ mahoro_free(ptr)
         struct MagicCookie *ptr;
 {
         magic_close(ptr->cookie);
-        free(ptr);
+        xfree(ptr);
 }
 
 static VALUE