Remove memory leaks from eval