free global_env in repl()