add heap and delete memory of expression