Correct a memory leak in the recent change to the {edit} macro