Add request record and mruby data struct
fix memory leak