fix a memory leak in mruby-random.