diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-31 09:10:19 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-31 09:10:19 +0000 |
commit | 3bbb5d3d2dbf45d0a6aa66aa39c1733804b82eb7 (patch) | |
tree | b0c0757ee025b638406d81a71eb9fb6716f86ae3 | |
parent | f6c7de7a8a62b25c2b23fddbe787d4c880158d3d (diff) | |
download | mahoro-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -22,7 +22,7 @@ mahoro_free(ptr) struct MagicCookie *ptr; { magic_close(ptr->cookie); - free(ptr); + xfree(ptr); } static VALUE |