Fixed pointer cast error and forgot to free
Merge branch 'master' of github.com:mobiruby/mruby-cfunc