fix a memory leak in mruby-random.
Merge pull request #1784 from tmash06/fix_memory_leak_in_mruby-random

fix a memory leak in mruby-random.