change return value of mrb_free from void* to void
use mrb_free to free random state