From 3bbb5d3d2dbf45d0a6aa66aa39c1733804b82eb7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 31 Jan 2011 09:10:19 +0000 Subject: 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. --- mahoro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7