mruby: free used resouce as soon as possible