Fix memory leak in expr