Added memory management code for next_edit