diff options
Diffstat (limited to 'tuplr.cpp')
-rw-r--r-- | tuplr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -27,6 +27,7 @@ using namespace std; using boost::format; Funcs AConsCall::funcs; +GC AST::pool; template<typename Atom> ostream& @@ -228,6 +229,7 @@ initLang(PEnv& penv, TEnv& tenv) } + /*************************************************************************** * EVAL/REPL/MAIN * ***************************************************************************/ @@ -256,6 +258,7 @@ main(int argc, char** argv) CEnv* cenv = newCenv(penv, tenv); cenv->push(); + AST::pool.lock(); map<string,string> args; list<string> files; @@ -326,7 +329,7 @@ main(int argc, char** argv) os.close(); } - delete cenv; + freeCenv(cenv); return ret; } |