Fixed memory leak in export of fcn eval tree.